[FFmpeg-cvslog] avcodec/tests/options: Set timebase

Michael Niedermayer git at videolan.org
Wed Jun 22 18:52:05 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Jun 22 18:39:39 2016 +0200| [70d48accd8558f4b7386df369290a3ec85cd1537] | committer: Michael Niedermayer

avcodec/tests/options: Set timebase

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/tests/options.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/tests/options.c b/libavcodec/tests/options.c
index 7f0ee1d..2e19a6e 100644
--- a/libavcodec/tests/options.c
+++ b/libavcodec/tests/options.c
@@ -144,6 +144,7 @@ static void test_copy(const AVCodec *c1, const AVCodec *c2)
     ctx1 = avcodec_alloc_context3(c1);
     ctx2 = avcodec_alloc_context3(c2);
     ctx1->width = ctx1->height = 128;
+    ctx1->time_base = (AVRational){12,34};
     if (ctx2->codec && ctx2->codec->priv_class && ctx2->codec->priv_data_size) {
         av_opt_set(ctx2->priv_data, "num", "667", 0);
         av_opt_set(ctx2->priv_data, "str", "i'm dest value before copy", 0);



More information about the ffmpeg-cvslog mailing list