diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-09 20:14:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-09 20:14:34 +0000 |
commit | 92a267756f4294f3a026171fd9298b56aa3bf6ea (patch) | |
tree | c5dd16201ccbd16c4a5c1e672efb5892dcdd7bd4 /libavformat/flvdec.c | |
parent | c7516a000c4c6469543326779da87995d8d15dd3 (diff) | |
download | ffmpeg-92a267756f4294f3a026171fd9298b56aa3bf6ea.tar.gz |
flv fixes
Originally committed as revision 2863 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index f636791a4e..29772f75bc 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -57,6 +57,8 @@ static int flv_read_header(AVFormatContext *s, return AVERROR_NOMEM; st->codec.codec_type = CODEC_TYPE_VIDEO; st->codec.codec_id = CODEC_ID_FLV1; + st->codec.frame_rate= ap->frame_rate; + st->codec.frame_rate_base= ap->frame_rate_base; } if ((flags & 4)) { @@ -83,6 +85,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) type = get_byte(&s->pb); size = get_be24(&s->pb); pts = get_be24(&s->pb); +// av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); if (url_feof(&s->pb)) return -EIO; url_fskip(&s->pb, 4); /* reserved */ |