fix pts handling in ffm
Originally committed as revision 13683 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user