]> granicus.if.org Git - handbrake/commit
scan: work around libav mpeg2 dummy first frame
authorjstebbins <jstebbins.hb@gmail.com>
Sun, 15 Feb 2015 21:22:06 +0000 (21:22 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sun, 15 Feb 2015 21:22:06 +0000 (21:22 +0000)
commit901d81b2b980c3afa7e14f434cc8ffd092cc750e
treefbce59314887fe3b1ae3bce2dca4717a521e8cc1
parent56586d73ed29fe64187c9083a84da4146db65bcc
scan: work around libav mpeg2 dummy first frame

libav generates a dummy first frame after any seek for some mpeg2 streams.
This results in black preview frames and invalid autocrop values.

So always decode at least 2 frames before using the frame for preview.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6906 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/scan.c