Re: [FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-16 Thread Michael Niedermayer
On Wed, Apr 15, 2020 at 11:07:05PM +0530, Gyan Doshi wrote: > > > On 15-04-2020 10:39 pm, Michael Niedermayer wrote: > >On Wed, Apr 15, 2020 at 05:29:06PM +0530, Gyan Doshi wrote: > >> > >>On 15-04-2020 05:03 pm, Michael Niedermayer wrote: > >>>On Wed, Apr 15, 2020 at 10:55:47AM +0530, Gyan Doshi

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-15 Thread Gyan Doshi
On 15-04-2020 10:39 pm, Michael Niedermayer wrote: On Wed, Apr 15, 2020 at 05:29:06PM +0530, Gyan Doshi wrote: On 15-04-2020 05:03 pm, Michael Niedermayer wrote: On Wed, Apr 15, 2020 at 10:55:47AM +0530, Gyan Doshi wrote: On 15-04-2020 01:33 am, Michael Niedermayer wrote: On Tue, Apr 14, 2

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-15 Thread Michael Niedermayer
On Wed, Apr 15, 2020 at 05:29:06PM +0530, Gyan Doshi wrote: > > > On 15-04-2020 05:03 pm, Michael Niedermayer wrote: > >On Wed, Apr 15, 2020 at 10:55:47AM +0530, Gyan Doshi wrote: > >> > >>On 15-04-2020 01:33 am, Michael Niedermayer wrote: > >>>On Tue, Apr 14, 2020 at 02:48:47PM +0530, Gyan Doshi

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-15 Thread Gyan Doshi
On 15-04-2020 05:03 pm, Michael Niedermayer wrote: On Wed, Apr 15, 2020 at 10:55:47AM +0530, Gyan Doshi wrote: On 15-04-2020 01:33 am, Michael Niedermayer wrote: On Tue, Apr 14, 2020 at 02:48:47PM +0530, Gyan Doshi wrote: For inputs from demuxers with AVFMT_TS_DISCONT flag, the existing con

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-15 Thread Michael Niedermayer
On Wed, Apr 15, 2020 at 10:55:47AM +0530, Gyan Doshi wrote: > > > On 15-04-2020 01:33 am, Michael Niedermayer wrote: > >On Tue, Apr 14, 2020 at 02:48:47PM +0530, Gyan Doshi wrote: > >>For inputs from demuxers with AVFMT_TS_DISCONT flag, > >>the existing condition, > >> > >> delta < -1LL*dts_del

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-14 Thread Gyan Doshi
On 15-04-2020 01:33 am, Michael Niedermayer wrote: On Tue, Apr 14, 2020 at 02:48:47PM +0530, Gyan Doshi wrote: For inputs from demuxers with AVFMT_TS_DISCONT flag, the existing condition, delta < -1LL*dts_delta_threshold*AV_TIME_BASE is rendered superflous due to the fixed threshold in p

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-14 Thread Michael Niedermayer
On Tue, Apr 14, 2020 at 02:48:47PM +0530, Gyan Doshi wrote: > For inputs from demuxers with AVFMT_TS_DISCONT flag, > the existing condition, > > delta < -1LL*dts_delta_threshold*AV_TIME_BASE > > is rendered superflous due to the fixed threshold in > > pkt_dts + AV_TIME_BASE/10 < FFMAX(ist->pts

[FFmpeg-devel] [PATCH v2] ffmpeg: allow full range of dts_delta_threshold

2020-04-14 Thread Gyan Doshi
For inputs from demuxers with AVFMT_TS_DISCONT flag, the existing condition, delta < -1LL*dts_delta_threshold*AV_TIME_BASE is rendered superflous due to the fixed threshold in pkt_dts + AV_TIME_BASE/10 < FFMAX(ist->pts, ist->dts) This prevents users from setting a high threshold to avoid disc