Revision e356fc57 libavformat/mtv.c

View differences:

libavformat/mtv.c
83 83
    AVStream        *st;
84 84
    unsigned int    audio_subsegments;
85 85

  
86
    url_fskip(pb, 3);
86
    avio_seek(pb, 3, SEEK_CUR);
87 87
    mtv->file_size         = avio_rl32(pb);
88 88
    mtv->segments          = avio_rl32(pb);
89
    url_fskip(pb, 32);
89
    avio_seek(pb, 32, SEEK_CUR);
90 90
    mtv->audio_identifier  = avio_rl24(pb);
91 91
    mtv->audio_br          = avio_rl16(pb);
92 92
    mtv->img_colorfmt      = avio_rl24(pb);
......
105 105
        mtv->img_height=mtv->img_segment_size / (mtv->img_bpp>>3)
106 106
                        / mtv->img_width;
107 107

  
108
    url_fskip(pb, 4);
108
    avio_seek(pb, 4, SEEK_CUR);
109 109
    audio_subsegments = avio_rl16(pb);
110 110
    mtv->full_segment_size =
111 111
        audio_subsegments * (MTV_AUDIO_PADDING_SIZE + MTV_ASUBCHUNK_DATA_SIZE) +
......
164 164

  
165 165
    if((url_ftell(pb) - s->data_offset + mtv->img_segment_size) % mtv->full_segment_size)
166 166
    {
167
        url_fskip(pb, MTV_AUDIO_PADDING_SIZE);
167
        avio_seek(pb, MTV_AUDIO_PADDING_SIZE, SEEK_CUR);
168 168

  
169 169
        ret = av_get_packet(pb, pkt, MTV_ASUBCHUNK_DATA_SIZE);
170 170
        if(ret < 0)

Also available in: Unified diff