]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/tests/options: Set timebase
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Jun 2016 16:39:39 +0000 (18:39 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Jun 2016 16:49:33 +0000 (18:49 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tests/options.c

index 7f0ee1d807070c3be76a9015c18b7935a51e8c65..2e19a6eac2cb5d29b952cb37886e8199c6777ab8 100644 (file)
@@ -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);