summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau_mpeg12.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-17 12:57:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-17 13:05:13 +0100
commit2a37e560dccb81328f610c51e74ce6cc53f1a5c7 (patch)
tree8a8e8569f6be8f90d73808614d45fdcf00317893 /libavcodec/vdpau_mpeg12.c
parent377cfc28a226a66d6f872f0a16b3811208011ebc (diff)
downloadffmpeg-2a37e560dccb81328f610c51e74ce6cc53f1a5c7.tar.gz
avcodec/vdpau: fix ff_vdpau_get_surface_id() argument after H264Picture
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vdpau_mpeg12.c')
-rw-r--r--libavcodec/vdpau_mpeg12.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vdpau_mpeg12.c b/libavcodec/vdpau_mpeg12.c
index f21b34152b..6a68459fea 100644
--- a/libavcodec/vdpau_mpeg12.c
+++ b/libavcodec/vdpau_mpeg12.c
@@ -43,12 +43,12 @@ static int vdpau_mpeg_start_frame(AVCodecContext *avctx,
switch (s->pict_type) {
case AV_PICTURE_TYPE_B:
- ref = ff_vdpau_get_surface_id(&s->next_picture);
+ ref = ff_vdpau_get_surface_id(&s->next_picture.f);
assert(ref != VDP_INVALID_HANDLE);
info->backward_reference = ref;
/* fall through to forward prediction */
case AV_PICTURE_TYPE_P:
- ref = ff_vdpau_get_surface_id(&s->last_picture);
+ ref = ff_vdpau_get_surface_id(&s->last_picture.f);
info->forward_reference = ref;
}