On Thu, Sep 22, 2011 at 02:53:15PM -0400, Justin Ruggles wrote:
> The initial sample of each block is raw 16-bit PCM, not DPCM.
> Fixes decoding of all samples in:
> http://streams.videolan.org/samples/game-formats/sierra-vmd/Lighthouse/
> ---
>  libavcodec/vmdav.c |  112 
> ++++++++++++++++++++++++++++++++++------------------
>  1 files changed, 74 insertions(+), 38 deletions(-)
> 
> diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
> index 110d19c..01bc94e 100644
> --- a/libavcodec/vmdav.c
> +++ b/libavcodec/vmdav.c
> @@ -510,6 +514,7 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx,
>          return buf_size;
>      }
>  
> +    /* get block type */
>      block_type = buf[6];
>      if (block_type < BLOCK_TYPE_AUDIO || block_type > BLOCK_TYPE_SILENCE) {
>          av_log(avctx, AV_LOG_ERROR, "unknown block type: %d\n", block_type);

I think that comment is really not needed. The rest of patch looks OK.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to