Revision b72a2bc8 libavformat/avidec.c

View differences:

libavformat/avidec.c
35 35
    int scale;
36 36
    int rate;
37 37
    int sample_size; /* size of one sample (or packet) (in the rate/scale sense) in bytes */
38
    int start;
39 38

  
40 39
    int64_t cum_len; /* temporary storage (used during seek) */
41 40

  
......
313 312
            }
314 313
            av_set_pts_info(st, 64, ast->scale, ast->rate);
315 314

  
316
            ast->start= get_le32(pb); /* start */
315
            ast->cum_len=get_le32(pb); /* start */
317 316
            nb_frames = get_le32(pb);
318 317

  
319 318
            st->start_time = 0;
......
344 343
                av_log(s, AV_LOG_ERROR, "unknown stream type %X\n", tag1);
345 344
                goto fail;
346 345
            }
346
            ast->frame_offset= ast->cum_len * FFMAX(ast->sample_size, 1);
347 347
            url_fskip(pb, size - 12 * 4);
348 348
            break;
349 349
        case MKTAG('s', 't', 'r', 'f'):

Also available in: Unified diff