Commit 4c4f14c7 authored by Carl Eugen Hoyos's avatar 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.
parent 3f87a170
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment