[FFmpeg-cvslog] lavd/v4l2: Use AVSTREAM_PARSE_FULL_ONCE when reading a h264 stream.
Carl Eugen Hoyos
git at videolan.org
Tue Aug 4 15:04:22 CEST 2015
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Aug 4 14:59:26 2015 +0200| [4c4f14c7179c1c79f71a3036e537b1c1dbc50030] | committer: Carl Eugen Hoyos
lavd/v4l2: Use AVSTREAM_PARSE_FULL_ONCE when reading a h264 stream.
Reported, debugged and tested by trac user noah.
Fixes ticket #4644.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c4f14c7179c1c79f71a3036e537b1c1dbc50030
---
libavdevice/v4l2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index cc2be37..d198abc 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -966,7 +966,7 @@ static int v4l2_read_header(AVFormatContext *ctx)
st->codec->codec_tag =
avcodec_pix_fmt_to_codec_tag(st->codec->pix_fmt);
else if (codec_id == AV_CODEC_ID_H264) {
- st->need_parsing = AVSTREAM_PARSE_HEADERS;
+ st->need_parsing = AVSTREAM_PARSE_FULL_ONCE;
}
if (desired_format == V4L2_PIX_FMT_YVU420)
st->codec->codec_tag = MKTAG('Y', 'V', '1', '2');
More information about the ffmpeg-cvslog
mailing list