summaryrefslogtreecommitdiff
path: root/libavcodec/tests
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-22 18:39:39 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-22 18:49:33 +0200
commit70d48accd8558f4b7386df369290a3ec85cd1537 (patch)
tree767c3219f5afb39dfa4fc00d71950d2c16692740 /libavcodec/tests
parenta444a50510e76a87f34d5b2e6d4f696b6af7e79b (diff)
downloadffmpeg-70d48accd8558f4b7386df369290a3ec85cd1537.tar.gz
avcodec/tests/options: Set timebase
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/tests')
-rw-r--r--libavcodec/tests/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/tests/options.c b/libavcodec/tests/options.c
index 7f0ee1d807..2e19a6eac2 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);