hevc: fixing TSCL_A_VIDYO_5 decoding output order(cherry picked from commit 19c5d9ed2...
authorMickaël Raulet <mraulet@insa-rennes.fr>
Tue, 15 Oct 2013 21:04:25 +0000 (23:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Oct 2013 23:48:11 +0000 (01:48 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc_refs.c

index 9de1335..9392a5a 100644 (file)
@@ -168,7 +168,7 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush)
 
         /* wait for more frames before output */
         if (!flush && s->seq_output == s->seq_decode && s->sps &&
-            nb_output <= s->sps->temporal_layer[s->temporal_id].num_reorder_pics)
+            nb_output <= s->sps->temporal_layer[s->sps->max_sub_layers - 1].num_reorder_pics)
             return 0;
 
         if (nb_output) {