On 03/18/2012 03:04 PM, Ronald S. Bultje wrote:

> ---
>  libavcodec/adpcm.c |   17 +++++++++--------
>  1 files changed, 9 insertions(+), 8 deletions(-)
[...]
> @@ -937,10 +941,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, 
> void *data,
>                      *samples++ = c->status[channel].sample1;
>                  }
>              }
> -            src+=avctx->channels;
>          }
> -        /* consume whole packet */
> -        src = buf + buf_size;
>          break;
>      }
>      case CODEC_ID_ADPCM_EA_R1:


I'm not sure why that was there in the first place, but without
additional testing it would probably be best to keep the current
behavior by seeking the reader to the end of the buffer.

The rest LGTM.

-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to