fix pts handling in ffm

Originally committed as revision 13683 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier
2008-06-07 00:49:03 +00:00
parent c07d64c890
commit 2940b38ef2
4 changed files with 10 additions and 30 deletions

View File

@@ -232,7 +232,6 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
FFMContext *ffm = s->priv_data;
AVStream *st;
FFMStream *fst;
ByteIOContext *pb = s->pb;
AVCodecContext *codec;
int i, nb_streams;
@@ -263,15 +262,10 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
st = av_new_stream(s, 0);
if (!st)
goto fail;
fst = av_mallocz(sizeof(FFMStream));
if (!fst)
goto fail;
s->streams[i] = st;
av_set_pts_info(st, 64, 1, 1000000);
st->priv_data = fst;
codec = st->codec;
/* generic info */
codec->codec_id = get_be32(pb);