[FFmpeg-cvslog] avformat/hevcdec: add more irap cases to hevc_probe()

Dirk Farin git at videolan.org
Thu Oct 17 10:26:23 CEST 2013


ffmpeg | branch: master | Dirk Farin <dirk.farin at gmail.com> | Thu Oct 17 10:14:51 2013 +0200| [56cf6151ae9f4304d10bbe36930d0eceef59fca2] | committer: Michael Niedermayer

avformat/hevcdec: add more irap cases to hevc_probe()

This fixes fate-hevc-conformance-RAP_A_docomo_4

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56cf6151ae9f4304d10bbe36930d0eceef59fca2
---

 libavformat/hevcdec.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/libavformat/hevcdec.c b/libavformat/hevcdec.c
index c187652..88abcc6 100644
--- a/libavformat/hevcdec.c
+++ b/libavformat/hevcdec.c
@@ -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;
             }
         }
     }



More information about the ffmpeg-cvslog mailing list