On 18/07/14 15:56, Vittorio Giovara wrote:
> On Thu, Jul 17, 2014 at 7:49 PM, Luca Barbato <[email protected]> wrote:
>> From: "Ronald S. Bultje" <[email protected]>
>>
>> Such files can be created using the --bff x264 option.
>>
>> Sample-Id: h264_direct_temporal_mvs_bff.mkv
>> ---
>>  libavcodec/h264_direct.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c
>> index 0cf0d46..2d96f93 100644
>> --- a/libavcodec/h264_direct.c
>> +++ b/libavcodec/h264_direct.c
>> @@ -49,7 +49,8 @@ static int get_scale_factor(H264Context *const h, int poc, 
>> int poc1, int i)
>>
>>  void ff_h264_direct_dist_scale_factor(H264Context *const h)
>>  {
>> -    const int poc  = h->cur_pic_ptr->field_poc[h->picture_structure == 
>> PICT_BOTTOM_FIELD];
>> +    const int poc  = (FIELD_PICTURE(h)) ? 
>> h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD]
>> +                                        : h->cur_pic_ptr->poc;
> 
> Seems ok, you can drop the extra () too.
> 

Sure.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to