]> granicus.if.org Git - handbrake/commit
decavcodec: fix avcodec_open failure upon bad extradata
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 24 Jan 2017 18:01:48 +0000 (11:01 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 24 Jan 2017 18:10:24 +0000 (11:10 -0700)
commite35254ee7f29d463dd5e32f8b2ca6772a4d59991
treec5f0bdc8c436f6e38dc11b710c53c5b573dac5a6
parent29d07075d0ceed9c373a42969596e6a743b67a50
decavcodec: fix avcodec_open failure upon bad extradata

If extradata is improperly parsed, avcodec_open may fail.  Keep trying
avcodec_open as long as there is more data to parse.

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

(cherry picked from commit ca1dcccd09b5dfac93829d46fd6c7c9711898b77)
libhb/decavcodec.c