diff options
author | Mike Melanson <mike@multimedia.cx> | 2008-03-01 01:43:19 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2008-03-01 01:43:19 +0000 |
commit | 40e8e497004cc82db1d566efe3b601b23b658d89 (patch) | |
tree | 2d3a602ac28291ef8919db8c123bc5589b06dd27 /libavformat/idcin.c | |
parent | 73260a11e1a3da8a0c67967f71d460db8bd0a4df (diff) | |
download | ffmpeg-40e8e497004cc82db1d566efe3b601b23b658d89.tar.gz |
fix the id CIN demuxer by using the pts API correctly
Originally committed as revision 12281 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/idcin.c')
-rw-r--r-- | libavformat/idcin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/idcin.c b/libavformat/idcin.c index e113f4de1f..914a3532ac 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -71,7 +71,7 @@ #include "avformat.h" #define HUFFMAN_TABLE_SIZE (64 * 1024) -#define FRAME_PTS_INC (90000 / 14) +#define IDCIN_FPS 14 typedef struct IdcinDemuxContext { int video_stream_index; @@ -152,7 +152,7 @@ static int idcin_read_header(AVFormatContext *s, st = av_new_stream(s, 0); if (!st) return AVERROR(ENOMEM); - av_set_pts_info(st, 33, 1, 90000); + av_set_pts_info(st, 33, 1, IDCIN_FPS); idcin->video_stream_index = st->index; st->codec->codec_type = CODEC_TYPE_VIDEO; st->codec->codec_id = CODEC_ID_IDCIN; @@ -175,7 +175,7 @@ static int idcin_read_header(AVFormatContext *s, st = av_new_stream(s, 0); if (!st) return AVERROR(ENOMEM); - av_set_pts_info(st, 33, 1, 90000); + av_set_pts_info(st, 33, 1, IDCIN_FPS); idcin->audio_stream_index = st->index; st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_tag = 1; @@ -271,7 +271,7 @@ static int idcin_read_packet(AVFormatContext *s, pkt->pts = idcin->pts; idcin->current_audio_chunk ^= 1; - idcin->pts += FRAME_PTS_INC; + idcin->pts++; } if (idcin->audio_present) |