OSDN Git Service

hevc: fix temporal_id(cherry picked from commit 5eac0df49d33bef7f3ffc5efde19839dddb554e8)
authorMickaël Raulet <mraulet@insa-rennes.fr>
Thu, 31 Oct 2013 22:51:08 +0000 (23:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Nov 2013 23:44:54 +0000 (00:44 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc.c

index 97fedd5..e88798b 100644 (file)
@@ -459,11 +459,11 @@ static int hls_slice_header(HEVCContext *s)
         /* 8.3.1 */
         if (s->temporal_id == 0 &&
             s->nal_unit_type != NAL_TRAIL_N &&
-            s->nal_unit_type != NAL_TSA_N &&
-            s->nal_unit_type != NAL_STSA_N &&
-            s->nal_unit_type != NAL_TRAIL_N &&
-            s->nal_unit_type != NAL_RADL_N &&
-            s->nal_unit_type != NAL_RADL_R &&
+            s->nal_unit_type != NAL_TSA_N   &&
+            s->nal_unit_type != NAL_STSA_N  &&
+            s->nal_unit_type != NAL_RADL_N  &&
+            s->nal_unit_type != NAL_RADL_ &&
+            s->nal_unit_type != NAL_RASL_N  &&
             s->nal_unit_type != NAL_RASL_R)
             s->pocTid0 = s->poc;