[FFmpeg-cvslog] r25897 - trunk/libavformat/rtpdec_h264.c

mstorsjo subversion
Mon Dec 6 13:44:09 CET 2010


Author: mstorsjo
Date: Mon Dec  6 13:44:09 2010
New Revision: 25897

Log:
rtpdec_h264: Pass NAL type 0 through

According to the spec, this type shouldn't ever be used. Nevertheless,
passing it through enables decoding streams which otherwise aren't
decodeable.

Modified:
   trunk/libavformat/rtpdec_h264.c

Modified: trunk/libavformat/rtpdec_h264.c
==============================================================================
--- trunk/libavformat/rtpdec_h264.c	Mon Dec  6 13:43:38 2010	(r25896)
+++ trunk/libavformat/rtpdec_h264.c	Mon Dec  6 13:44:09 2010	(r25897)
@@ -187,10 +187,7 @@ static int h264_handle_packet(AVFormatCo
     if (type >= 1 && type <= 23)
         type = 1;              // simplify the case. (these are all the nal types used internally by the h264 codec)
     switch (type) {
-    case 0:                    // undefined;
-        result= -1;
-        break;
-
+    case 0:                    // undefined, but pass them through
     case 1:
         av_new_packet(pkt, len+sizeof(start_sequence));
         memcpy(pkt->data, start_sequence, sizeof(start_sequence));



More information about the ffmpeg-cvslog mailing list