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 9b76e49061a321467df23f7b1c8e8e715c8dec71) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
02cb95ba0c
commit
58dc78387d
@ -268,7 +268,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…
x
Reference in New Issue
Block a user