diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-24 09:36:02 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-26 05:16:04 +0300 |
commit | 324429309ee3090b4a08b04ab50be76751a16dbd (patch) | |
tree | 9dec7f2f3c87755e6212be22e059afa7793ab601 /libavformat/img2.c | |
parent | 853daff68210e4c2bf72afa2f757f89146e5d8c2 (diff) |
lavf: use a new ffio_wfourcc macro instead of put_tag() where possible
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 0abdb2931719d96dee725e555e9b46b2b2f8a6be)
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r-- | libavformat/img2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c index 25ed2b32e8..a9a4a49023 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -23,6 +23,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/avstring.h" #include "avformat.h" +#include "avio_internal.h" #include <strings.h> typedef struct { @@ -383,13 +384,13 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) if(pkt->size < 8 || AV_RL32(pkt->data+4) != MKTAG('j','p','2','c')) goto error; avio_wb32(pb[0], 12); - put_tag (pb[0], "jP "); + ffio_wfourcc(pb[0], "jP "); avio_wb32(pb[0], 0x0D0A870A); // signature avio_wb32(pb[0], 20); - put_tag (pb[0], "ftyp"); - put_tag (pb[0], "jp2 "); + ffio_wfourcc(pb[0], "ftyp"); + ffio_wfourcc(pb[0], "jp2 "); avio_wb32(pb[0], 0); - put_tag (pb[0], "jp2 "); + ffio_wfourcc(pb[0], "jp2 "); avio_write(pb[0], st->codec->extradata, st->codec->extradata_size); }else if(pkt->size < 8 || (!st->codec->extradata_size && |