libavformat/mov: Fix inserting frames before current_frame.
authorJacob Trimble <modmaker-at-google.com@ffmpeg.org>
Thu, 27 Jul 2017 17:34:32 +0000 (10:34 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Aug 2017 01:02:11 +0000 (03:02 +0200)
commitf4544163b27615ecfff1b42d6acdb3672ac92399
tree0c754d94e0210d8651436a1378ec8c092d8b3511
parent7fb4b0368de18fc150e72a9190a4c87827d2d9d2
libavformat/mov: Fix inserting frames before current_frame.

When using streaming input, it may be possible to see frames that appear
before the current_frame.  When these frames are inserted into the
index, the current_frame needs to be updated so it is still pointing
at the same frame.

Signed-off-by: Jacob Trimble <modmaker@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c