[Mesa-dev] [PATCH] st/omx/dec/h264: fix field picture type 0 poc disorder

Christian König deathsimple at vodafone.de
Mon Oct 19 08:06:01 PDT 2015


Reviewed-by: Christian König <christian.koenig at amd.com>

For mesa you can push small fixes like this even without a review when 
nobody objects after a few days.

Regards,
Christian.

On 19.10.2015 16:55, Liu, Leo wrote:
> Ping...
>
>> -----Original Message-----
>> From: Liu, Leo
>> Sent: Wednesday, October 14, 2015 2:49 PM
>> To: mesa-dev at lists.freedesktop.org
>> Cc: Liu, Leo; 10.6 11.0
>> Subject: [PATCH] st/omx/dec/h264: fix field picture type 0 poc disorder
>>
>> Signed-off-by: Leo Liu <leo.liu at amd.com>
>> Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
>> ---
>> src/gallium/state_trackers/omx/vid_dec_h264.c | 12 ++++++++----
>> 1 file changed, 8 insertions(+), 4 deletions(-)
>>
>> diff --git a/src/gallium/state_trackers/omx/vid_dec_h264.c
>> b/src/gallium/state_trackers/omx/vid_dec_h264.c
>> index 18d8803..f66ed89 100644
>> --- a/src/gallium/state_trackers/omx/vid_dec_h264.c
>> +++ b/src/gallium/state_trackers/omx/vid_dec_h264.c
>> @@ -753,10 +753,14 @@ static void slice_header(vid_dec_PrivateType *priv,
>> struct vl_rbsp *rbsp,
>>           priv->codec_data.h264.delta_pic_order_cnt_bottom =
>> delta_pic_order_cnt_bottom;
>>        }
>>
>> -      priv->picture.h264.field_order_cnt[0] = pic_order_cnt_msb +
>> pic_order_cnt_lsb;
>> -      priv->picture.h264.field_order_cnt[1] = pic_order_cnt_msb +
>> pic_order_cnt_lsb;
>> -      if (!priv->picture.h264.field_pic_flag)
>> -         priv->picture.h264.field_order_cnt[1] += priv-
>>> codec_data.h264.delta_pic_order_cnt_bottom;
>> +      if (!priv->picture.h264.field_pic_flag) {
>> +         priv->picture.h264.field_order_cnt[0] = pic_order_cnt_msb +
>> pic_order_cnt_lsb;
>> +         priv->picture.h264.field_order_cnt[1] = priv->picture.h264.field_order_cnt
>> [0] +
>> +                                          priv->codec_data.h264.delta_pic_order_cnt_bottom;
>> +      } else if (!priv->picture.h264.bottom_field_flag)
>> +         priv->picture.h264.field_order_cnt[0] = pic_order_cnt_msb +
>> pic_order_cnt_lsb;
>> +      else
>> +         priv->picture.h264.field_order_cnt[1] = pic_order_cnt_msb +
>> pic_order_cnt_lsb;
>>
>>     } else if (sps->pic_order_cnt_type == 1) {
>>        unsigned MaxFrameNum = 1 << (sps->log2_max_frame_num_minus4 + 4);
>> --
>> 1.9.1
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list