Revision 32442930 libavformat/img2.c

View differences:

libavformat/img2.c
23 23
#include "libavutil/intreadwrite.h"
24 24
#include "libavutil/avstring.h"
25 25
#include "avformat.h"
26
#include "avio_internal.h"
26 27
#include <strings.h>
27 28

  
28 29
typedef struct {
......
383 384
                if(pkt->size < 8 || AV_RL32(pkt->data+4) != MKTAG('j','p','2','c'))
384 385
                    goto error;
385 386
                avio_wb32(pb[0], 12);
386
                put_tag (pb[0], "jP  ");
387
                ffio_wfourcc(pb[0], "jP  ");
387 388
                avio_wb32(pb[0], 0x0D0A870A); // signature
388 389
                avio_wb32(pb[0], 20);
389
                put_tag (pb[0], "ftyp");
390
                put_tag (pb[0], "jp2 ");
390
                ffio_wfourcc(pb[0], "ftyp");
391
                ffio_wfourcc(pb[0], "jp2 ");
391 392
                avio_wb32(pb[0], 0);
392
                put_tag (pb[0], "jp2 ");
393
                ffio_wfourcc(pb[0], "jp2 ");
393 394
                avio_write(pb[0], st->codec->extradata, st->codec->extradata_size);
394 395
            }else if(pkt->size < 8 ||
395 396
                     (!st->codec->extradata_size &&

Also available in: Unified diff