On Mon, May 27, 2013 at 07:20:41PM +0200, Anton Khirnov wrote:
> ---
> libavcodec/wavpack.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
> index 073059b..3cc0533 100644
> --- a/libavcodec/wavpack.c
> +++ b/libavcodec/wavpack.c
> @@ -1212,6 +1212,11 @@ static int wavpack_decode_frame(AVCodecContext *avctx,
> void *data,
> buf_size -= frame_size;
> }
>
> + if (s->ch_offset != avctx->channels) {
> + av_log(avctx, AV_LOG_ERROR, "Too few blocks in a packet.\n");
> + return AVERROR_INVALIDDATA;
> + }
> +
> *got_frame_ptr = 1;
>
> return avpkt->size;
> --
the same as the previous patch
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel