Fix crash when a frame being deinterleaved has fewer audio channels
authorCarl Hetherington <cth@carlh.net>
Tue, 9 Feb 2016 00:15:31 +0000 (00:15 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 9 Feb 2016 00:15:31 +0000 (00:15 +0000)
commit0b520c4aaca4acb9cdf6334858b462d1a657209d
tree9322f18ac5cdd1d47819d2364f7910fa905bea8d
parent8ad8719583be8d778ce830044654fa2c7e22709e
Fix crash when a frame being deinterleaved has fewer audio channels
than its stream; I'm not sure why this happens but the file that
triggered this commit was stereo AC3 and the crash happened when
(embedded) subtitles were enabled and the file seek was seeked
randomly.  There were frame-sync errors from FFmpeg around the crash.
src/lib/ffmpeg_decoder.cc