]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/hevcdec.c
avformat/hevcdec: add more irap cases to hevc_probe()
[ffmpeg] / libavformat / hevcdec.c
index c187652765fbe937bcaf0c2e2044a15993b7b2e4..88abcc6ab20df287af2e9222260f35584e37074e 100644 (file)
@@ -46,8 +46,12 @@ static int hevc_probe(AVProbeData *p)
             case NAL_VPS:        vps++;  break;
             case NAL_SPS:        sps++;  break;
             case NAL_PPS:        pps++;  break;
-            case 19:
-            case 20: irap++; break;
+            case NAL_BLA_N_LP:
+            case NAL_BLA_W_LP:
+            case NAL_BLA_W_RADL:
+            case NAL_CRA_NUT:
+            case NAL_IDR_N_LP:
+            case NAL_IDR_W_RADL: irap++; break;
             }
         }
     }