vdpau: don't assume Picture and H264Picture are the same
authorwm4 <nfxjfg@googlemail.com>
Thu, 20 Mar 2014 07:53:16 +0000 (08:53 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 20 Mar 2014 15:59:46 +0000 (16:59 +0100)
commit7948a51b5c3d08e1a1173442a7ff72b220def303
tree4abdb8bc18abd3cbcec525a5f958689107bd89c6
parent82bb3048013201c0095d2853d4623633d912252f
vdpau: don't assume Picture and H264Picture are the same

The code passed H264Picture* and Picture*, and assumed the
hwaccel_picture_private field was in the same place in both
structs. Somehow this happened to work in Libav, but broke in
FFmpeg (and probably subtly breaks in Libav too).

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/vdpau.c
libavcodec/vdpau_h264.c
libavcodec/vdpau_internal.h
libavcodec/vdpau_mpeg12.c
libavcodec/vdpau_mpeg4.c
libavcodec/vdpau_vc1.c