avcodec/vp8: Check cond init

Fixes: CID1598563 Unchecked return value

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/7.1
Michael Niedermayer 7 months ago
parent 4ac7405aaf
commit 9b76e49061
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 6
      libavcodec/vp8.c

@ -252,7 +252,11 @@ int update_dimensions(VP8Context *s, int width, int height, int is_vp7)
free_buffers(s); free_buffers(s);
return AVERROR(ret); return AVERROR(ret);
} }
pthread_cond_init(&s->thread_data[i].cond, NULL); ret = pthread_cond_init(&s->thread_data[i].cond, NULL);
if (ret) {
free_buffers(s);
return AVERROR(ret);
}
#endif #endif
} }

Loading…
Cancel
Save