return 0;
}
-static int mov_write_packet(AVFormatContext *s, AVPacket *pkt)
+int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVMuxContext *mov = s->priv_data;
ByteIOContext *pb = s->pb;
pkt.data = av_malloc(pkt.size);
AV_WB16(pkt.data, len);
memcpy(pkt.data+2, t->value, len);
- mov_write_packet(s, &pkt);
+ ff_mov_write_packet(s, &pkt);
av_freep(&pkt.data);
}
}
CODEC_ID_AAC,
CODEC_ID_MPEG4,
mov_write_header,
- mov_write_packet,
+ ff_mov_write_packet,
mov_write_trailer,
.flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS,
.codec_tag = (const AVCodecTag* const []){codec_movvideo_tags, codec_movaudio_tags, 0},
CODEC_ID_AMR_NB,
CODEC_ID_H263,
mov_write_header,
- mov_write_packet,
+ ff_mov_write_packet,
mov_write_trailer,
.flags = AVFMT_GLOBALHEADER,
.codec_tag = (const AVCodecTag* const []){codec_3gp_tags, 0},
CODEC_ID_AAC,
CODEC_ID_MPEG4,
mov_write_header,
- mov_write_packet,
+ ff_mov_write_packet,
mov_write_trailer,
.flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS,
.codec_tag = (const AVCodecTag* const []){ff_mp4_obj_type, 0},
CODEC_ID_AAC,
CODEC_ID_MPEG4,
mov_write_header,
- mov_write_packet,
+ ff_mov_write_packet,
mov_write_trailer,
.flags = AVFMT_GLOBALHEADER,
.codec_tag = (const AVCodecTag* const []){ff_mp4_obj_type, 0},
CODEC_ID_AMR_NB,
CODEC_ID_H263,
mov_write_header,
- mov_write_packet,
+ ff_mov_write_packet,
mov_write_trailer,
.flags = AVFMT_GLOBALHEADER,
.codec_tag = (const AVCodecTag* const []){codec_3gp_tags, 0},
CODEC_ID_AAC,
CODEC_ID_H264,
mov_write_header,
- mov_write_packet,
+ ff_mov_write_packet,
mov_write_trailer,
.flags = AVFMT_GLOBALHEADER,
.codec_tag = (const AVCodecTag* const []){codec_ipod_tags, 0},