aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-08-04 14:59:26 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-08-04 14:59:26 +0200
commit4c4f14c7179c1c79f71a3036e537b1c1dbc50030 (patch)
tree02269665606f3ca658cdb071bf19b24df4ba0349 /libavdevice/v4l2.c
parent3f87a17063314dd161d389761f5baa1cda8e61f1 (diff)
downloadffmpeg-4c4f14c7179c1c79f71a3036e537b1c1dbc50030.tar.gz
lavd/v4l2: Use AVSTREAM_PARSE_FULL_ONCE when reading a h264 stream.
Reported, debugged and tested by trac user noah. Fixes ticket #4644.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index cc2be37795..d198abc75b 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');