Ticket #23: 0001-vaapi-filter-out-DELAYED_PIC_REF-flag-to-determine.patch

File 0001-vaapi-filter-out-DELAYED_PIC_REF-flag-to-determine.patch, 845 bytes (added by gb, 6 years ago)

Filter out DELAYED_PIC_REF flag

  • libavcodec/vaapi_h264.c

    From 8d38c63922e8e2f1c5499905c0e187187452e06d Mon Sep 17 00:00:00 2001
    From: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
    Date: Mon, 28 Mar 2011 15:55:41 +0200
    Subject: [PATCH] vaapi: filter out DELAYED_PIC_REF flag to determine field.
    
    ---
     libavcodec/vaapi_h264.c |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
    index cbe526b..34e4976 100644
    a b static void fill_vaapi_pic(VAPictureH264 *va_pic, 
    5555{ 
    5656    if (pic_structure == 0) 
    5757        pic_structure = pic->reference; 
     58    pic_structure &= PICT_FRAME; /* PICT_TOP_FIELD|PICT_BOTTOM_FIELD */ 
    5859 
    5960    va_pic->picture_id = ff_vaapi_get_surface_id(pic); 
    6061    va_pic->frame_idx  = pic->long_ref ? pic->pic_id : pic->frame_num;