]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg4videodec: Fix nonsense warning
authorAndreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Mon, 11 Mar 2019 10:32:05 +0000 (11:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 11 Mar 2019 23:48:56 +0000 (00:48 +0100)
commit3f086a2f665f9906e0f6197cddbfacc2f4b093a1
tree03ea635dc6c568f53acf611cf6f6a33808b405b5
parent5ab44ff20cdc0e05adecbd0cd352d25fcb930094
avcodec/mpeg4videodec: Fix nonsense warning

Since db772308941a2a338c7809f90d347219a6a93074 parsing of
mpeg4-extradata lead to a "Failed to parse extradata" warning, because
ff_mpeg4_decode_picture_header returns AVERROR_INVALIDDATA in case that
no VOP was found. This patch adds a parameter to signify whether a
header (where the absence of a VOP does not raise an error) or not is
parsed. The first mode is of course used for parsing headers.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h263dec.c
libavcodec/mpeg4video.h
libavcodec/mpeg4video_parser.c
libavcodec/mpeg4videodec.c