[FFmpeg-cvslog] r16627 - trunk/libavformat/avc.c

bcoudurier subversion
Fri Jan 16 02:26:53 CET 2009


Author: bcoudurier
Date: Fri Jan 16 02:26:52 2009
New Revision: 16627

Log:
support h264 extradata with 0x000001 startcode

Modified:
   trunk/libavformat/avc.c

Modified: trunk/libavformat/avc.c
==============================================================================
--- trunk/libavformat/avc.c	Fri Jan 16 02:22:30 2009	(r16626)
+++ trunk/libavformat/avc.c	Fri Jan 16 02:26:52 2009	(r16627)
@@ -97,7 +97,8 @@ int ff_isom_write_avcc(ByteIOContext *pb
 {
     if (len > 6) {
         /* check for h264 start code */
-        if (AV_RB32(data) == 0x00000001) {
+        if (AV_RB32(data) == 0x00000001 ||
+            AV_RB24(data) == 0x000001) {
             uint8_t *buf=NULL, *end, *start;
             uint32_t sps_size=0, pps_size=0;
             uint8_t *sps=0, *pps=0;




More information about the ffmpeg-cvslog mailing list