Commit a994fc39 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/utils: mark codec argument as const in ff_lock_avcodec()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 43cafb95
...@@ -167,7 +167,7 @@ int ff_init_buffer_info(AVCodecContext *s, AVFrame *frame); ...@@ -167,7 +167,7 @@ int ff_init_buffer_info(AVCodecContext *s, AVFrame *frame);
void avpriv_color_frame(AVFrame *frame, const int color[4]); void avpriv_color_frame(AVFrame *frame, const int color[4]);
extern volatile int ff_avcodec_locked; extern volatile int ff_avcodec_locked;
int ff_lock_avcodec(AVCodecContext *log_ctx, AVCodec *codec); int ff_lock_avcodec(AVCodecContext *log_ctx, const AVCodec *codec);
int ff_unlock_avcodec(void); int ff_unlock_avcodec(void);
int avpriv_lock_avformat(void); int avpriv_lock_avformat(void);
......
...@@ -3604,7 +3604,7 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)) ...@@ -3604,7 +3604,7 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op))
return 0; return 0;
} }
int ff_lock_avcodec(AVCodecContext *log_ctx, AVCodec *codec) int ff_lock_avcodec(AVCodecContext *log_ctx, const AVCodec *codec)
{ {
if (lockmgr_cb) { if (lockmgr_cb) {
if ((*lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) if ((*lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))
......
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