]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vdpau_mpeg4.c
avcodec/dsddec: use av_malloc_array()
[ffmpeg] / libavcodec / vdpau_mpeg4.c
index 1b0ef76a7bc987220d28fad62bd74ad854cb96d3..28f1f1157b87ae3faa6b3545d1d1b76c321588c7 100644 (file)
@@ -46,13 +46,13 @@ static int vdpau_mpeg4_start_frame(AVCodecContext *avctx,
 
     switch (s->pict_type) {
     case AV_PICTURE_TYPE_B:
-        ref = ff_vdpau_get_surface_id(&s->next_picture.f);
+        ref = ff_vdpau_get_surface_id(s->next_picture.f);
         assert(ref != VDP_INVALID_HANDLE);
         info->backward_reference = ref;
         info->vop_coding_type    = 2;
         /* fall-through */
     case AV_PICTURE_TYPE_P:
-        ref = ff_vdpau_get_surface_id(&s->last_picture.f);
+        ref = ff_vdpau_get_surface_id(s->last_picture.f);
         assert(ref != VDP_INVALID_HANDLE);
         info->forward_reference  = ref;
     }