On Thu, Nov 10, 2011 at 10:44:54AM -0500, Justin Ruggles wrote:
> ---
> libavcodec/dpcm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
> index f6531db..abb2019 100644
> --- a/libavcodec/dpcm.c
> +++ b/libavcodec/dpcm.c
> @@ -198,7 +198,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void
> *data, int *data_size,
> break;
> }
> out *= av_get_bytes_per_sample(avctx->sample_fmt);
> - if (out < 0) {
> + if (out <= 0) {
> av_log(avctx, AV_LOG_ERROR, "packet is too small\n");
> return AVERROR(EINVAL);
> }
> --
OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel