[FFmpeg-devel] [PATCH] lavc/vda_h264: fixes compilation after 1534ef87

Clément Bœsch u at pkh.me
Sun Jun 12 20:58:24 CEST 2016


On Sun, Jun 12, 2016 at 08:12:33PM +0200, Clément Bœsch wrote:
> ---
> untested
> ---
>  libavcodec/vda_h264_dec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/vda_h264_dec.c b/libavcodec/vda_h264_dec.c
> index a092693..a196eb7 100644
> --- a/libavcodec/vda_h264_dec.c
> +++ b/libavcodec/vda_h264_dec.c
> @@ -226,7 +226,7 @@ static av_cold int vdadec_init(AVCodecContext *avctx)
>      ctx->h264_initialized = 1;
>  
>      for (i = 0; i < MAX_SPS_COUNT; i++) {
> -        SPS *sps = ctx->h264ctx.sps_buffers[i];
> +        const SPS *sps = (const SPS*)ctx->h264ctx.ps.sps_list[i]->data;
>          if (sps && (sps->bit_depth_luma != 8 ||
>                  sps->chroma_format_idc == 2 ||
>                  sps->chroma_format_idc == 3)) {

Tested by a user on IRC (maru @ #mpv-devel) and applied

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160612/dcd554a1/attachment.sig>


More information about the ffmpeg-devel mailing list