[FFmpeg-cvslog] r11511 - in trunk/libavformat: avc.c avc.h matroskaenc.c movenc.c

aurel subversion
Sat Jan 12 00:33:33 CET 2008


Author: aurel
Date: Sat Jan 12 00:33:32 2008
New Revision: 11511

Log:
add a ff_ prefix to newly exported functions from avc.c

Modified:
   trunk/libavformat/avc.c
   trunk/libavformat/avc.h
   trunk/libavformat/matroskaenc.c
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/avc.c
==============================================================================
--- trunk/libavformat/avc.c	(original)
+++ trunk/libavformat/avc.c	Sat Jan 12 00:33:32 2008
@@ -58,7 +58,7 @@ static uint8_t *avc_find_startcode( uint
     return end + 3;
 }
 
-int avc_parse_nal_units(uint8_t *buf_in, uint8_t **buf, int *size)
+int ff_avc_parse_nal_units(uint8_t *buf_in, uint8_t **buf, int *size)
 {
     ByteIOContext *pb;
     uint8_t *p = buf_in;
@@ -81,7 +81,7 @@ int avc_parse_nal_units(uint8_t *buf_in,
     return 0;
 }
 
-int isom_write_avcc(ByteIOContext *pb, uint8_t *data, int len)
+int ff_isom_write_avcc(ByteIOContext *pb, uint8_t *data, int len)
 {
     if (len > 6) {
         /* check for h264 start code */
@@ -90,7 +90,7 @@ int isom_write_avcc(ByteIOContext *pb, u
             uint32_t sps_size=0, pps_size=0;
             uint8_t *sps=0, *pps=0;
 
-            int ret = avc_parse_nal_units(data, &buf, &len);
+            int ret = ff_avc_parse_nal_units(data, &buf, &len);
             if (ret < 0)
                 return ret;
             data = buf;

Modified: trunk/libavformat/avc.h
==============================================================================
--- trunk/libavformat/avc.h	(original)
+++ trunk/libavformat/avc.h	Sat Jan 12 00:33:32 2008
@@ -25,7 +25,7 @@
 #include <stdint.h>
 #include "avio.h"
 
-int avc_parse_nal_units(uint8_t *buf_in, uint8_t **buf, int *size);
-int isom_write_avcc(ByteIOContext *pb, uint8_t *data, int len);
+int ff_avc_parse_nal_units(uint8_t *buf_in, uint8_t **buf, int *size);
+int ff_isom_write_avcc(ByteIOContext *pb, uint8_t *data, int len);
 
 #endif /* AVC_H */

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	(original)
+++ trunk/libavformat/matroskaenc.c	Sat Jan 12 00:33:32 2008
@@ -481,7 +481,7 @@ static int mkv_write_codecprivate(AVForm
         else if (codec->codec_id == CODEC_ID_FLAC)
             ret = put_flac_codecpriv(s, dyn_cp, codec);
         else if (codec->codec_id == CODEC_ID_H264)
-            ret = isom_write_avcc(dyn_cp, codec->extradata, codec->extradata_size);
+            ret = ff_isom_write_avcc(dyn_cp, codec->extradata, codec->extradata_size);
         else if (codec->extradata_size)
             put_buffer(dyn_cp, codec->extradata, codec->extradata_size);
     } else if (codec->codec_type == CODEC_TYPE_VIDEO) {
@@ -749,7 +749,7 @@ static int mkv_write_packet(AVFormatCont
         codec->extradata_size > 0 && AV_RB32(codec->extradata) == 0x00000001) {
         /* from x264 or from bytestream h264 */
         /* nal reformating needed */
-        int ret = avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size);
+        int ret = ff_avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size);
         if (ret < 0)
             return ret;
         assert(pkt->size);

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Sat Jan 12 00:33:32 2008
@@ -422,7 +422,7 @@ static int mov_write_avcc_tag(ByteIOCont
 
     put_be32(pb, 0);
     put_tag(pb, "avcC");
-    isom_write_avcc(pb, track->vosData, track->vosLen);
+    ff_isom_write_avcc(pb, track->vosData, track->vosLen);
     return updateSize(pb, pos);
 }
 
@@ -1532,7 +1532,7 @@ static int mov_write_packet(AVFormatCont
     if (enc->codec_id == CODEC_ID_H264 && trk->vosLen > 0 && *(uint8_t *)trk->vosData != 1) {
         /* from x264 or from bytestream h264 */
         /* nal reformating needed */
-        int ret = avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size);
+        int ret = ff_avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size);
         if (ret < 0)
             return ret;
         assert(pkt->size);




More information about the ffmpeg-cvslog mailing list