Merge commit '18156b53f9b642b71c182c5c9818175a61572d2b'
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 13 Jul 2015 14:30:41 +0000 (16:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 13 Jul 2015 14:31:10 +0000 (16:31 +0200)
* commit '18156b53f9b642b71c182c5c9818175a61572d2b':
  hevc: do not pass an entire HEVCContext into export_stream_params()

Merged-by: Michael Niedermayer <michael@niedermayer.cc>
1  2 
libavcodec/hevc.c

@@@ -326,13 -429,13 +326,13 @@@ static void export_stream_params(AVCode
                    num, den, 1 << 30);
  }
  
 -static int set_sps(HEVCContext *s, const HEVCSPS *sps)
 +static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fmt)
  {
 -    #define HWACCEL_MAX (CONFIG_HEVC_DXVA2_HWACCEL + CONFIG_HEVC_D3D11VA_HWACCEL)
 +    #define HWACCEL_MAX (CONFIG_HEVC_DXVA2_HWACCEL + CONFIG_HEVC_D3D11VA_HWACCEL + CONFIG_HEVC_VDPAU_HWACCEL)
      enum AVPixelFormat pix_fmts[HWACCEL_MAX + 2], *fmt = pix_fmts;
 -    int ret;
 +    int ret, i;
  
-     export_stream_params(s->avctx, s, sps);
+     export_stream_params(s->avctx, &s->ps, sps);
  
      pic_arrays_free(s);
      ret = pic_arrays_init(s, sps);