apedec: set s->samples only when init_frame_decoder succeeded
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Mon, 27 Apr 2015 22:30:51 +0000 (00:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Apr 2015 01:21:12 +0000 (03:21 +0200)
commit464c49155ce7ffc88ed39eb2511e7a75565c24be
treefbe25083835f99eb459c6b4a3549152648f921ad
parent8ca170a78ab6e50f44d27d8a6b4ad7ba1ed81f0c
apedec: set s->samples only when init_frame_decoder succeeded

Otherwise range_start_decoding is not necessarily run and thus
ctx->rc.range still 0 in range_dec_normalize leading to an infinite
loop.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/apedec.c