[FFmpeg-devel] [PATCH] avformat/rtpenc_chain: Set timebase

Michael Niedermayer michaelni at gmx.at
Thu Jul 24 00:14:14 CEST 2014


Avoid warning that its not set

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/rtpenc_chain.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c
index dea1f70..a023450 100644
--- a/libavformat/rtpenc_chain.c
+++ b/libavformat/rtpenc_chain.c
@@ -21,6 +21,7 @@
 
 #include "avformat.h"
 #include "avio_internal.h"
+#include "internal.h"
 #include "rtpenc_chain.h"
 #include "rtp.h"
 #include "libavutil/opt.h"
@@ -75,6 +76,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
     rtpctx->start_time_realtime = s->start_time_realtime;
 
     avcodec_copy_context(rtpctx->streams[0]->codec, st->codec);
+    avpriv_set_pts_info(rtpctx->streams[0], 64, st->codec->time_base.num, st->codec->time_base.den);
 
     if (handle) {
         ret = ffio_fdopen(&rtpctx->pb, handle);
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list