Also slightly move around code not allocate a new frame if we won't
decode it. This prevents us from putting undecoded frames in frame
pointers, which (in mt decoding) other threads will use and wait on
as references, causing a deadlock (if we skipped decoding) or a crash
(if we didn't initialized next_framep[] at all).

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind

BUG=112384
TEST=none

Review URL: http://codereview.chromium.org/9314018

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/ffmpeg/source@120229 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
1 file changed