From b5bc8591eee3bb0632cbb11e255178c95becaebd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 23 Jul 2005 15:43:07 +0000 Subject: [PATCH] 10l (!= vs. >) Originally committed as revision 4468 to svn://svn.ffmpeg.org/ffmpeg/trunk --- output_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output_example.c b/output_example.c index e419c24f4a..f61229dedd 100644 --- a/output_example.c +++ b/output_example.c @@ -353,7 +353,7 @@ void write_video_frame(AVFormatContext *oc, AVStream *st) /* encode the image */ out_size = avcodec_encode_video(c, video_outbuf, video_outbuf_size, picture); /* if zero size, it means the image was buffered */ - if (out_size != 0) { + if (out_size > 0) { AVPacket pkt; av_init_packet(&pkt);