ffmpeg | branch: master | Carl Eugen Hoyos <[email protected]> | Sat Dec 10 16:43:00 2016 +0100| [9d5141d1fb4c95600f9ca70a3db5475d1a78667b] | committer: Carl Eugen Hoyos
lavd/v4l2: Avoid setting frame_size to a negative value. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d5141d1fb4c95600f9ca70a3db5475d1a78667b --- libavdevice/v4l2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index ae51d83..b57909bd 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -936,6 +936,7 @@ static int v4l2_read_header(AVFormatContext *ctx) goto fail; st->codecpar->format = ff_fmt_v4l2ff(desired_format, codec_id); + if (st->codecpar->format != AV_PIX_FMT_NONE) s->frame_size = av_image_get_buffer_size(st->codecpar->format, s->width, s->height, 1); _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
