avcodec: Don't lock during open if the codec has threadsafe init
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
1d7d824494
commit
abaa12263e
2 changed files with 13 additions and 8 deletions
|
@ -182,7 +182,7 @@ void avpriv_color_frame(AVFrame *frame, const int color[4]);
|
|||
|
||||
extern volatile int ff_avcodec_locked;
|
||||
int ff_lock_avcodec(AVCodecContext *log_ctx, const AVCodec *codec);
|
||||
int ff_unlock_avcodec(void);
|
||||
int ff_unlock_avcodec(const AVCodec *codec);
|
||||
|
||||
int avpriv_lock_avformat(void);
|
||||
int avpriv_unlock_avformat(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue