diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-25 17:41:00 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-26 03:16:09 +0100 |
commit | 4e815a8b6070004fc3f4161e3735c35f69538518 (patch) | |
tree | 4b8eec06e1870395a7b283922112b71a26930f11 | |
parent | aaa71a3e1df951df2f94845cd56ed1d26a588b58 (diff) | |
download | ffmpeg-4e815a8b6070004fc3f4161e3735c35f69538518.tar.gz |
movenc: remove uses of deprecated API.
Replace put_tag() with ffio_wfourcc() and ByteIOContext with AVIOContext.
(cherry picked from commit 13ff92d19706d17f876ff676591dace0b3e34794)
-rw-r--r-- | libavformat/movenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 93d6ce96e3..de16b5b190 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1233,7 +1233,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st) return 0x5c; } -static int mov_write_tapt_tag(ByteIOContext *pb, MOVTrack *track) +static int mov_write_tapt_tag(AVIOContext *pb, MOVTrack *track) { int32_t width = av_rescale(track->enc->sample_aspect_ratio.num, track->enc->width, track->enc->sample_aspect_ratio.den); @@ -1241,16 +1241,16 @@ static int mov_write_tapt_tag(ByteIOContext *pb, MOVTrack *track) int64_t pos = url_ftell(pb); avio_wb32(pb, 0); /* size */ - put_tag(pb, "tapt"); + ffio_wfourcc(pb, "tapt"); avio_wb32(pb, 20); - put_tag(pb, "clef"); + ffio_wfourcc(pb, "clef"); avio_wb32(pb, 0); avio_wb32(pb, width << 16); avio_wb32(pb, track->enc->height << 16); avio_wb32(pb, 20); - put_tag(pb, "enof"); + ffio_wfourcc(pb, "enof"); avio_wb32(pb, 0); avio_wb32(pb, track->enc->width << 16); avio_wb32(pb, track->enc->height << 16); |