Revision 32442930 libavformat/soxenc.c

View differences:

libavformat/soxenc.c
31 31

  
32 32
#include "libavutil/intreadwrite.h"
33 33
#include "avformat.h"
34
#include "avio_internal.h"
34 35
#include "sox.h"
35 36

  
36 37
typedef struct {
......
53 54
    sox->header_size = SOX_FIXED_HDR + comment_size;
54 55

  
55 56
    if (enc->codec_id == CODEC_ID_PCM_S32LE) {
56
        put_tag(pb, ".SoX");
57
        ffio_wfourcc(pb, ".SoX");
57 58
        avio_wl32(pb, sox->header_size);
58 59
        avio_wl64(pb, 0); /* number of samples */
59 60
        avio_wl64(pb, av_dbl2int(enc->sample_rate));
60 61
        avio_wl32(pb, enc->channels);
61 62
        avio_wl32(pb, comment_size);
62 63
    } else if (enc->codec_id == CODEC_ID_PCM_S32BE) {
63
        put_tag(pb, "XoS.");
64
        ffio_wfourcc(pb, "XoS.");
64 65
        avio_wb32(pb, sox->header_size);
65 66
        avio_wb64(pb, 0); /* number of samples */
66 67
        avio_wb64(pb, av_dbl2int(enc->sample_rate));

Also available in: Unified diff