[FFmpeg-devel] [PATCH] Make g729dec.c:decode_frame() return AVERROR_INVALIDDATA rather than AVERROR_NOFMT in case of invalid / unknown packet size.
Stefano Sabatini
stefano.sabatini-lala
Sat Mar 20 00:53:39 CET 2010
On date Wednesday 2010-03-17 00:57:01 +0100, Stefano Sabatini encoded:
> Hi, $subj.
> --
> FFmpeg = Funny Friendly Merciless Pacific Evil Guru
> From 7573cbe2763042e1f6a1099d94720a2024125068 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Wed, 17 Mar 2010 00:34:39 +0100
> Subject: [PATCH 09/15] Make decode_frame() return AVERROR_INVALIDDATA rather than
> AVERROR_NOFMT in case of invalid / unknown packet size.
>
> ---
> libavcodec/g729dec.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
> index c1cdb5d..be24360 100644
> --- a/libavcodec/g729dec.c
> +++ b/libavcodec/g729dec.c
> @@ -224,7 +224,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
> av_log(avctx, AV_LOG_DEBUG, "Packet type: %s\n", "G.729D @ 6.4kbit/s");
> } else {
> av_log(avctx, AV_LOG_ERROR, "Packet size %d is unknown.\n", buf_size);
> - return (AVERROR_NOFMT);
> + return AVERROR_INVALIDDATA;
> }
>
> for (i=0; i < buf_size; i++)
Ping.
--
FFmpeg = Frenzy & Freak Magnificient Prodigious Ecletic Gadget
More information about the ffmpeg-devel
mailing list