diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2006-09-26 14:04:36 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2006-09-26 14:04:36 +0000 |
commit | 4156a436e37fb387da60fd919d6efa8ee71e1a0f (patch) | |
tree | 7a656df606c85c37abd96ca74767ba27920b0827 /ffmpeg.c | |
parent | 327409d7b9a3fdb87c113093f15ca69dccdbe5b5 (diff) | |
download | ffmpeg-4156a436e37fb387da60fd919d6efa8ee71e1a0f.tar.gz |
Handle possible failure of ff_eval.
Originally committed as revision 6338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -827,6 +827,10 @@ static void do_video_out(AVFormatContext *s, ret = avcodec_encode_video(enc, bit_buffer, bit_buffer_size, &big_picture); + if (ret == -1) { + fprintf(stderr, "Video encoding failed\n"); + exit(1); + } //enc->frame_number = enc->real_pict_num; if(ret>0){ pkt.data= bit_buffer; |