diff options
author | wm4 <nfxjfg@googlemail.com> | 2014-03-20 08:53:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-03-20 17:00:39 +0100 |
commit | 1b1094a19d9e41baf3253c83841f9e5343cecbd0 (patch) | |
tree | efd0f854f2f84824f2af500452a9232a8f714f0c /libavcodec/vdpau_mpeg12.c | |
parent | 7948a51b5c3d08e1a1173442a7ff72b220def303 (diff) | |
download | ffmpeg-1b1094a19d9e41baf3253c83841f9e5343cecbd0.tar.gz |
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_mpeg12.c')
-rw-r--r-- | libavcodec/vdpau_mpeg12.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vdpau_mpeg12.c b/libavcodec/vdpau_mpeg12.c index e62901adb1..0f92cef970 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; } |