]> granicus.if.org Git - handbrake/commit
reader: fix live preview generation for some streams
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 19 Jun 2017 17:22:28 +0000 (10:22 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 19 Jun 2017 17:35:41 +0000 (10:35 -0700)
commit9ea4f44fd42c8617d418a8a34d126995164f3c32
treea92aa131ed5e5a9ea2cbe5fb49d2af857b76a346
parent5e588aca20fb3a6412a9a503e7a765ba1ea742db
reader: fix live preview generation for some streams

Fixes https://github.com/HandBrake/HandBrake/issues/685

For some stream types, libav does not seek all streams within the file
to the same position.  So we get data from streams that is prior to the
desired preview start position leaking through. The result, for example,
is a preview that has audio that starts from the beginning of the file
and video that starts much later at the desired start pos.
libhb/reader.c