Commit 4212a632 authored by Brieuc Viel's avatar Brieuc Viel
Browse files

fix compil error

parent c675c3b7
......@@ -337,13 +337,13 @@ static void dec_process(MSFilter *f) {
iBufidx = AMediaCodec_dequeueInputBuffer(d->codec, TIMEOUT_US);
if (iBufidx >= 0) {
struct timespec ts;
buf = AMediaCodec_getInputBuffer(d->codec, iBufidx, &bufsize);
if (buf == NULL) {
ms_error("MSMediaCodecH264Dec: AMediaCodec_getInputBuffer() returned NULL");
continue;
}
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
if ((size_t)size > bufsize) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment