[FFmpeg-devel] [PATCH] diracdec: Fix FPE on invalid low_delay data
Michael Niedermayer
michaelni at gmx.at
Thu Dec 10 22:04:49 CET 2015
On Wed, Dec 09, 2015 at 12:56:02AM +0000, Kieran Kunhya wrote:
> ---
> libavcodec/diracdec.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
> index 6a53f38..0542ad7 100644
> --- a/libavcodec/diracdec.c
> +++ b/libavcodec/diracdec.c
> @@ -2043,6 +2043,11 @@ static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int
> if (s->version.minor == 2 && parse_code == 0x88)
> s->ld_picture = 1;
>
> + if (s->low_delay && !(s->ld_picture || s->hq_picture) ) {
> + av_log(avctx, AV_LOG_ERROR, "Invalid low delay flag\n");
> + return AVERROR_INVALIDDATA;
> + }
this should be merged with the patch needing this bugfix or commited
before it
LGTM
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151210/6c1417e1/attachment.sig>
More information about the ffmpeg-devel
mailing list