[FFmpeg-devel] [PATCH] pkt_pts reordering

Baptiste Coudurier baptiste.coudurier
Fri Jan 7 22:42:09 CET 2011


On 1/7/11 1:16 PM, Stefano Sabatini wrote:
> [...]
> 
>>  2010-12-27 - r26108 - lavfi 1.71.0 - AV_PERM_NEG_LINESIZES
>>    Add AV_PERM_NEG_LINESIZES in avfilter.h.
>>  
>> diff --git a/ffplay.c b/ffplay.c
>> index e0cc305..a52ec12 100644
>> --- a/ffplay.c
>> +++ b/ffplay.c
>> @@ -1652,6 +1652,8 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
>>      pic->age    = INT_MAX;
>>      pic->type   = FF_BUFFER_TYPE_USER;
>>      pic->reordered_opaque = codec->reordered_opaque;
>> +    if(codec->pkt) pic->pkt_pts = codec->pkt->pts;
>> +    else           pic->pkt_pts = AV_NOPTS_VALUE;
> 
> Nit:
> I'd prefer
> pic->pkt_pts = codec->pkt ? codec->pkt->pts : AV_NOPTS_VALUE;
> but do as you prefer

I prefer Michael's version, and please stop these useless, time
consuming nitpicks.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list