avfilter/af_loudnorm: correctly initialize PTS
authorNiklas Haas <git@haasn.xyz>
Sat, 3 Feb 2018 14:22:05 +0000 (15:22 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 14 Feb 2018 17:10:53 +0000 (18:10 +0100)
commit7c82e0f61e365296b094684fd92aea0fe05ceb93
treedabae417a37c7f053a56e18007d2b27e54307aa4
parentdc77e64f2d41a9a778b11afbfa8709e1ce483ef1
avfilter/af_loudnorm: correctly initialize PTS

Right now, the PTS always starts out as 0, which causes problems on a
seek or when inserting this filter mid-stream.

Initialize it instead to AV_NOPTS_VALUE and copy the PTS from the first
frame instead if this is the case.
libavfilter/af_loudnorm.c