[FFmpeg-devel] [PATCH 4/5] avformat/mux: use AVStream->codec_time_base
Michael Niedermayer
michaelni at gmx.at
Wed Jun 18 21:35:05 CEST 2014
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavformat/mux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mux.c b/libavformat/mux.c
index d90f133..3b880ac 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -393,7 +393,7 @@ static int init_pts(AVFormatContext *s)
den = (int64_t)st->time_base.num * st->codec->sample_rate;
break;
case AVMEDIA_TYPE_VIDEO:
- den = (int64_t)st->time_base.num * st->codec->time_base.den;
+ den = (int64_t)st->time_base.num * st->codec_time_base.den;
break;
default:
break;
@@ -530,7 +530,7 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
}
break;
case AVMEDIA_TYPE_VIDEO:
- frac_add(&st->pts, (int64_t)st->time_base.den * st->codec->time_base.num);
+ frac_add(&st->pts, (int64_t)st->time_base.den * st->codec_time_base.num);
break;
}
return 0;
--
1.7.9.5
More information about the ffmpeg-devel
mailing list