[FFmpeg-cvslog] VC1testenc: convert pts values to correct time-base.

Reimar Döffinger git
Mon Jan 31 18:48:16 CET 2011


ffmpeg | branch: master | Reimar D?ffinger <Reimar.Doeffinger at gmx.de> | Sat Jan 29 13:44:34 2011 +0100| [2ff4a2764e5ea74c85b4231bc110540278cf3708] | committer: Michael Niedermayer

VC1testenc: convert pts values to correct time-base.

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>
(cherry picked from commit 22e9277aa5e6e5abfd037420093439058d4a14df)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ff4a2764e5ea74c85b4231bc110540278cf3708
---

 libavformat/vc1testenc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/vc1testenc.c b/libavformat/vc1testenc.c
index 06431da..6023884 100644
--- a/libavformat/vc1testenc.c
+++ b/libavformat/vc1testenc.c
@@ -47,6 +47,7 @@ static int vc1test_write_header(AVFormatContext *s)
         put_le32(pb, s->streams[0]->r_frame_rate.den);
     else
         put_le32(pb, 0xFFFFFFFF); //variable framerate
+    av_set_pts_info(s->streams[0], 32, 1, 1000);
 
     return 0;
 }




More information about the ffmpeg-cvslog mailing list