check av_interleaved_write_frame() return
fixes issue149 Originally committed as revision 10891 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7c032a369a
commit
0ac0703107
8
ffmpeg.c
8
ffmpeg.c
@ -409,6 +409,8 @@ get_sync_ipts(const AVOutputStream *ost)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx, AVBitStreamFilterContext *bsfc){
|
static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx, AVBitStreamFilterContext *bsfc){
|
||||||
|
int ret;
|
||||||
|
|
||||||
while(bsfc){
|
while(bsfc){
|
||||||
AVPacket new_pkt= *pkt;
|
AVPacket new_pkt= *pkt;
|
||||||
int a= av_bitstream_filter_filter(bsfc, avctx, NULL,
|
int a= av_bitstream_filter_filter(bsfc, avctx, NULL,
|
||||||
@ -424,7 +426,11 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx
|
|||||||
bsfc= bsfc->next;
|
bsfc= bsfc->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_interleaved_write_frame(s, pkt);
|
ret= av_interleaved_write_frame(s, pkt);
|
||||||
|
if(ret < 0){
|
||||||
|
print_error("av_interleaved_write_frame()", ret);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAX_AUDIO_PACKET_SIZE (128 * 1024)
|
#define MAX_AUDIO_PACKET_SIZE (128 * 1024)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user