Ticket #2103 (new defect)

Opened 5 months ago

Last modified 5 months ago

wrong pkt in range check in the ffplay

Reported by: chinshou Owned by:
Priority: normal Component: FFplay
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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);

Change History

comment:1 Changed 5 months ago by cehoyos

Please either provide a failing sample (including failing command line including complete, uncut console output) or send a patch to ffmpeg-devel.

Note: See TracTickets for help on using tickets.