Mercurial > libavformat.hg
diff ffmdec.c @ 3438:40995a9455e3 libavformat
fix pts handling in ffm
author | bcoudurier |
---|---|
date | Sat, 07 Jun 2008 00:49:03 +0000 |
parents | 82c4cc2aae2a |
children | 2d52ccde8f86 |
line wrap: on
line diff
--- a/ffmdec.c Sat Jun 07 00:35:37 2008 +0000 +++ b/ffmdec.c Sat Jun 07 00:49:03 2008 +0000 @@ -232,7 +232,6 @@ { FFMContext *ffm = s->priv_data; AVStream *st; - FFMStream *fst; ByteIOContext *pb = s->pb; AVCodecContext *codec; int i, nb_streams; @@ -263,15 +262,10 @@ 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);