Revision e356fc57 libavformat/soxdec.c

View differences:

libavformat/soxdec.c
58 58
    if (avio_rl32(pb) == SOX_TAG) {
59 59
        st->codec->codec_id = CODEC_ID_PCM_S32LE;
60 60
        header_size         = avio_rl32(pb);
61
        url_fskip(pb, 8); /* sample count */
61
        avio_seek(pb, 8, SEEK_CUR); /* sample count */
62 62
        sample_rate         = av_int2dbl(avio_rl64(pb));
63 63
        st->codec->channels = avio_rl32(pb);
64 64
        comment_size        = avio_rl32(pb);
65 65
    } else {
66 66
        st->codec->codec_id = CODEC_ID_PCM_S32BE;
67 67
        header_size         = avio_rb32(pb);
68
        url_fskip(pb, 8); /* sample count */
68
        avio_seek(pb, 8, SEEK_CUR); /* sample count */
69 69
        sample_rate         = av_int2dbl(avio_rb64(pb));
70 70
        st->codec->channels = avio_rb32(pb);
71 71
        comment_size        = avio_rb32(pb);
......
105 105
                               AV_METADATA_DONT_STRDUP_VAL);
106 106
    }
107 107

  
108
    url_fskip(pb, header_size - SOX_FIXED_HDR - comment_size);
108
    avio_seek(pb, header_size - SOX_FIXED_HDR - comment_size, SEEK_CUR);
109 109

  
110 110
    st->codec->sample_rate           = sample_rate;
111 111
    st->codec->bits_per_coded_sample = 32;

Also available in: Unified diff