movenc: take packet dts shifting into mention in check_pkt
authorJan Ekström <jeebjp@gmail.com>
Fri, 29 Sep 2017 22:04:00 +0000 (01:04 +0300)
committerClément Bœsch <u@pkh.me>
Wed, 4 Oct 2017 11:09:29 +0000 (13:09 +0200)
commitffc58b2ce27e140b47900d1ead304663f7b385ae
tree10fb4cebeabe1eefb9bf2d814e40238d4873a25b
parent8be3fc88d3facec927708a8594fe26df93df5cad
movenc: take packet dts shifting into mention in check_pkt

This FFmpeg-specific "fuzzer fix" was never perfect, but now it
stopped encoding of actual content with a big enough DTS shift.
This returns the function to its original state of results
before negative CTS offsets were added.

I remember dealing with this function before, but somehow had
forgotten about it during VDD. The test cases not tripping this
over also didn't help.
libavformat/movenc.c