Opened 12 years ago

Closed 11 years ago

#2103 closed defect (fixed)

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 (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

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

comment:2 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: newclosed

Fixed by Marton in f07cb53.

Note: See TracTickets for help on using tickets.