aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/api-threadmessage-test.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-04-22 15:59:09 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-04-23 14:47:54 +0700
commitcdd3048134b8b032b69d3c076d73d24e329dc9ba (patch)
tree5a23d1b6d10204843325d71c93965a277a9d7b88 /tests/api/api-threadmessage-test.c
parent327a1c0dee05efff74b1fe18144a6543c44975fa (diff)
downloadffmpeg-cdd3048134b8b032b69d3c076d73d24e329dc9ba.tar.gz
tests: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'tests/api/api-threadmessage-test.c')
-rw-r--r--tests/api/api-threadmessage-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/api-threadmessage-test.c b/tests/api/api-threadmessage-test.c
index 3e0ac5cf19..05a8062b8c 100644
--- a/tests/api/api-threadmessage-test.c
+++ b/tests/api/api-threadmessage-test.c
@@ -95,7 +95,7 @@ static void *sender_thread(void *arg)
av_frame_free(&msg.frame);
break;
}
- av_frame_set_metadata(msg.frame, meta);
+ msg.frame->metadata = meta;
/* allocate a real frame in order to simulate "real" work */
msg.frame->format = AV_PIX_FMT_RGBA;
@@ -141,7 +141,7 @@ static void *receiver_thread(void *arg)
if (ret < 0)
break;
av_assert0(msg.magic == MAGIC);
- meta = av_frame_get_metadata(msg.frame);
+ meta = msg.frame->metadata;
e = av_dict_get(meta, "sig", NULL, 0);
av_log(NULL, AV_LOG_INFO, "got \"%s\" (%p)\n", e->value, msg.frame);
av_frame_free(&msg.frame);