h264: only ref cur_pic in update_thread_context if it is initialized
authorAnton Khirnov <anton@khirnov.net>
Thu, 12 Feb 2015 11:26:58 +0000 (12:26 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 21 Feb 2015 08:34:17 +0000 (09:34 +0100)
commit1dbfaa34e615606cb3f1a3ecabb117e354459edc
treea21c964e218adfd36976b9401af8004d65748e8e
parent532c96a2158c04f265d750d54f2f103b8d9fe0ef
h264: only ref cur_pic in update_thread_context if it is initialized

It may be empty if the previous thread's decode call did not contain a
valid frame.

(cherry picked from commit 0dea4c77ccf5956561bb8991311b3d834bb5fa40)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/h264_slice.c