[FFmpeg-trac] #2103(FFplay:new): wrong pkt in range check in the ffplay

FFmpeg trac at avcodec.org
Thu Jan 3 04:40:25 CET 2013


#2103: wrong pkt in range check in the ffplay
----------------------------------+--------------------------------------
             Reporter:  chinshou  |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  FFplay    |                  Version:  git-master
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 the packet in range check does not check whether start time is equal to
 AV_NOPTS_VALUE. if ic->streams[pkt->stream_index]->start_time ==
 AV_NOPTS_VALUE ,following code will not generate correct result.


     pkt_in_play_range = duration == AV_NOPTS_VALUE ||
                 (pkt->pts - ic->streams[pkt->stream_index]->start_time) *
                 av_q2d(ic->streams[pkt->stream_index]->time_base) -
                 (double)(start_time != AV_NOPTS_VALUE ? start_time : 0) /
 1000000
                 <= ((double)duration / 1000000);

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2103>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list