[FFmpeg-devel] [PATCH 1/2] movenc: export mov_write_esds_tag().

Sebastien Zwickert dilaroga at gmail.com
Sun Sep 16 17:43:19 CEST 2012


---
 libavformat/movenc.c |    7 ++++++-
 libavformat/movenc.h |    1 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 5e20a5c..d5f778d 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -295,7 +295,7 @@ static unsigned compute_avg_bitrate(MOVTrack *track)
     return size * 8 * track->timescale / track->track_duration;
 }
 
-static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track) // Basic
+int ff_mov_write_esds_tag(AVIOContext *pb, MOVTrack *track)
 {
     int64_t pos = avio_tell(pb);
     int decoder_specific_info_len = track->vos_len ? 5 + track->vos_len : 0;
@@ -348,6 +348,11 @@ static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track) // Basic
     return update_size(pb, pos);
 }
 
+static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track) // Basic
+{
+    return ff_mov_write_esds_tag(pb, track);
+}
+
 static int mov_pcm_le_gt16(enum AVCodecID codec_id)
 {
     return codec_id == AV_CODEC_ID_PCM_S24LE ||
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index 72427d8..b74eadf 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -181,5 +181,6 @@ int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt,
                              int track_index, int sample,
                              uint8_t *sample_data, int sample_size);
 void ff_mov_close_hinting(MOVTrack *track);
+int ff_mov_write_esds_tag(AVIOContext *pb, MOVTrack *track);
 
 #endif /* AVFORMAT_MOVENC_H */
-- 
1.7.9.6 (Apple Git-31.1)



More information about the ffmpeg-devel mailing list