Browse Source

dwstart support

Originally committed as revision 5097 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 19 years ago
parent
commit
b72a2bc82f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/avidec.c

+ 2
- 2
libavformat/avidec.c View File

@@ -35,7 +35,6 @@ typedef struct AVIStream {
int scale; int scale;
int rate; int rate;
int sample_size; /* size of one sample (or packet) (in the rate/scale sense) in bytes */ int sample_size; /* size of one sample (or packet) (in the rate/scale sense) in bytes */
int start;


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


@@ -313,7 +312,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
} }
av_set_pts_info(st, 64, ast->scale, ast->rate); av_set_pts_info(st, 64, ast->scale, ast->rate);


ast->start= get_le32(pb); /* start */
ast->cum_len=get_le32(pb); /* start */
nb_frames = get_le32(pb); nb_frames = get_le32(pb);


st->start_time = 0; st->start_time = 0;
@@ -344,6 +343,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
av_log(s, AV_LOG_ERROR, "unknown stream type %X\n", tag1); av_log(s, AV_LOG_ERROR, "unknown stream type %X\n", tag1);
goto fail; goto fail;
} }
ast->frame_offset= ast->cum_len * FFMAX(ast->sample_size, 1);
url_fskip(pb, size - 12 * 4); url_fskip(pb, size - 12 * 4);
break; break;
case MKTAG('s', 't', 'r', 'f'): case MKTAG('s', 't', 'r', 'f'):


Loading…
Cancel
Save