diff options
author | wm4 <nfxjfg@googlemail.com> | 2014-03-20 11:53:17 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-03-20 20:00:39 +0400 |
commit | 1b1094a19d9e41baf3253c83841f9e5343cecbd0 (patch) | |
tree | efd0f854f2f84824f2af500452a9232a8f714f0c /libavcodec/vdpau_mpeg4.c | |
parent | 7948a51b5c3d08e1a1173442a7ff72b220def303 (diff) |
vdpau: switch ff_vdpau_get_surface_id from Picture to AVFrame
This gets rid of aliasing completely unrelated structs to Picture.
Fixes the remaining compilation warnings in the vdpau code.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vdpau_mpeg4.c')
-rw-r--r-- | libavcodec/vdpau_mpeg4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vdpau_mpeg4.c b/libavcodec/vdpau_mpeg4.c index f328e484ae..3c6c8b3f34 100644 --- a/libavcodec/vdpau_mpeg4.c +++ b/libavcodec/vdpau_mpeg4.c @@ -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); + 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); + ref = ff_vdpau_get_surface_id(&s->last_picture.f); assert(ref != VDP_INVALID_HANDLE); info->forward_reference = ref; } |