aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2006-09-26 14:04:36 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2006-09-26 14:04:36 +0000
commit4156a436e37fb387da60fd919d6efa8ee71e1a0f (patch)
tree7a656df606c85c37abd96ca74767ba27920b0827 /ffmpeg.c
parent327409d7b9a3fdb87c113093f15ca69dccdbe5b5 (diff)
downloadffmpeg-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d2a169b1a7..dc8673fd5c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;