mirror of https://git.ffmpeg.org/ffmpeg.git
10l (!= vs. >)
Originally committed as revision 4468 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d9dd7a0d2c
commit
b5bc8591ee
|
@ -353,7 +353,7 @@ void write_video_frame(AVFormatContext *oc, AVStream *st)
|
||||||
/* encode the image */
|
/* encode the image */
|
||||||
out_size = avcodec_encode_video(c, video_outbuf, video_outbuf_size, picture);
|
out_size = avcodec_encode_video(c, video_outbuf, video_outbuf_size, picture);
|
||||||
/* if zero size, it means the image was buffered */
|
/* if zero size, it means the image was buffered */
|
||||||
if (out_size != 0) {
|
if (out_size > 0) {
|
||||||
AVPacket pkt;
|
AVPacket pkt;
|
||||||
av_init_packet(&pkt);
|
av_init_packet(&pkt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue