h264: reset next_output_pic earlier in start_frame()
authorAnton Khirnov <anton@khirnov.net>
Wed, 23 Apr 2014 20:26:40 +0000 (22:26 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:07:51 +0000 (20:07 -0400)
commit079758e49a4d6b3e7cf2e22bed71d34c46712242
treeb4d5767276cbe9724e2b532542eb6239bb50d5af
parenta0a90b1a1116250a2494021da810cc5da89ea36f
h264: reset next_output_pic earlier in start_frame()

In case start_frame() fails, this potentially invalid frame can still be
output to the caller.

Bug-Id: 672
Bug-Id: debian/741240
Bug-Id: ubuntu/1288206
libavcodec/h264.c