mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/vp8: Check cond init
Fixes: CID1598563 Unchecked return value
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9b76e49061
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4ef3c9ddc9
commit
8831bff756
@ -244,7 +244,11 @@ int update_dimensions(VP8Context *s, int width, int height, int is_vp7)
|
||||
free_buffers(s);
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user