mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/vaapi: fix pointer types after H264Picture changes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9517900bef
commit
377cfc28a2
6 changed files with 12 additions and 12 deletions
|
|
@ -73,10 +73,10 @@ static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_
|
|||
|
||||
switch (s->pict_type) {
|
||||
case AV_PICTURE_TYPE_B:
|
||||
pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture);
|
||||
pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture.f);
|
||||
// fall-through
|
||||
case AV_PICTURE_TYPE_P:
|
||||
pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture);
|
||||
pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture.f);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue