Revision e356fc57 libavformat/rtpdec_asf.c

View differences:

libavformat/rtpdec_asf.c
187 187
                flags |= RTP_FLAG_KEY;
188 188
            len_off = avio_rb24(pb);
189 189
            if (mflags & 0x20)   /**< relative timestamp */
190
                url_fskip(pb, 4);
190
                avio_seek(pb, 4, SEEK_CUR);
191 191
            if (mflags & 0x10)   /**< has duration */
192
                url_fskip(pb, 4);
192
                avio_seek(pb, 4, SEEK_CUR);
193 193
            if (mflags & 0x8)    /**< has location ID */
194
                url_fskip(pb, 4);
194
                avio_seek(pb, 4, SEEK_CUR);
195 195
            off = url_ftell(pb);
196 196

  
197 197
            if (!(mflags & 0x40)) {
......
214 214
                    return AVERROR(EIO);
215 215

  
216 216
                avio_write(asf->pktbuf, buf + off, len - off);
217
                url_fskip(pb, len - off);
217
                avio_seek(pb, len - off, SEEK_CUR);
218 218
                if (!(flags & RTP_FLAG_MARKER))
219 219
                    return -1;
220 220
                out_len     = url_close_dyn_buf(asf->pktbuf, &asf->buf);
......
234 234
                asf->buf = av_realloc(asf->buf, out_len);
235 235
                memcpy(asf->buf + prev_len, buf + off,
236 236
                       FFMIN(cur_len, len - off));
237
                url_fskip(pb, cur_len);
237
                avio_seek(pb, cur_len, SEEK_CUR);
238 238
            }
239 239
        }
240 240

  

Also available in: Unified diff