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>
Showing
- libavcodec/vdpau.c 3 additions, 5 deletionslibavcodec/vdpau.c
- libavcodec/vdpau_h264.c 3 additions, 3 deletionslibavcodec/vdpau_h264.c
- libavcodec/vdpau_internal.h 3 additions, 2 deletionslibavcodec/vdpau_internal.h
- libavcodec/vdpau_mpeg12.c 2 additions, 2 deletionslibavcodec/vdpau_mpeg12.c
- libavcodec/vdpau_mpeg4.c 2 additions, 2 deletionslibavcodec/vdpau_mpeg4.c
- libavcodec/vdpau_vc1.c 2 additions, 2 deletionslibavcodec/vdpau_vc1.c
Loading
Please register or sign in to comment