On 17/03/15 15:21, Derek Buitenhuis wrote:
On 3/16/2015 8:08 PM, Martin Storsjö wrote:
The current behavior may produce a different sequence of packets
after seeking, compared to demuxing linearly from the beginning.
This is because the MOV demuxer seeks in each stream individually,
based on timestamp, which may set each stream at a slightly different
position than if the file would have been read sequentially.
This makes implementing certain operations, such as segmenting,
quite hard, and slower than need be.
Therefore, add an option which retains the same packet sequence
after seeking, as when a file is demuxed linearly.
---
libavformat/isom.h | 1 +
libavformat/mov.c | 42 +++++++++++++++++++++++++++++++++---------
libavformat/version.h | 2 +-
3 files changed, 35 insertions(+), 10 deletions(-)
Tested and works.
Someone who isn't me should obviously OK it though.
Looks ok to me as well, the while(1) should not be a problem.
lu
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel