mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/vdpau: update ff_vdpau_h264_set_reference_frames() to H264Picture
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
dc226c023d
commit
3e3b0b3a40
@ -125,7 +125,7 @@ void ff_vdpau_h264_set_reference_frames(H264Context *h)
|
|||||||
{
|
{
|
||||||
struct vdpau_render_state *render, *render_ref;
|
struct vdpau_render_state *render, *render_ref;
|
||||||
VdpReferenceFrameH264 *rf, *rf2;
|
VdpReferenceFrameH264 *rf, *rf2;
|
||||||
Picture *pic;
|
H264Picture *pic;
|
||||||
int i, list, pic_frame_idx;
|
int i, list, pic_frame_idx;
|
||||||
|
|
||||||
render = (struct vdpau_render_state *)h->cur_pic_ptr->f.data[0];
|
render = (struct vdpau_render_state *)h->cur_pic_ptr->f.data[0];
|
||||||
@ -135,7 +135,7 @@ void ff_vdpau_h264_set_reference_frames(H264Context *h)
|
|||||||
#define H264_RF_COUNT FF_ARRAY_ELEMS(render->info.h264.referenceFrames)
|
#define H264_RF_COUNT FF_ARRAY_ELEMS(render->info.h264.referenceFrames)
|
||||||
|
|
||||||
for (list = 0; list < 2; ++list) {
|
for (list = 0; list < 2; ++list) {
|
||||||
Picture **lp = list ? h->long_ref : h->short_ref;
|
H264Picture **lp = list ? h->long_ref : h->short_ref;
|
||||||
int ls = list ? 16 : h->short_ref_count;
|
int ls = list ? 16 : h->short_ref_count;
|
||||||
|
|
||||||
for (i = 0; i < ls; ++i) {
|
for (i = 0; i < ls; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user