diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-11-27 21:56:35 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-12-05 21:01:17 +0100 |
commit | 25fec8595d3a050d926f8145729288ae6e8d6a1a (patch) | |
tree | 7ee6e947d70eee3bacab24d6db88820ff8d83228 /libavcodec/internal.h | |
parent | 538196050197e41e98da0de36b479992387def63 (diff) | |
download | ffmpeg-25fec8595d3a050d926f8145729288ae6e8d6a1a.tar.gz |
avcodec: add ff_lock/unlock_avcodec functions.
Will be used in future patches, together with the
variable that allows checking whether the lock is held.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 01620fa125..2d3433f434 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -129,6 +129,10 @@ void ff_init_buffer_info(AVCodecContext *s, AVFrame *frame); */ void ff_packet_free_side_data(AVPacket *pkt); +extern volatile int ff_avcodec_locked; +int ff_lock_avcodec(AVCodecContext *log_ctx); +int ff_unlock_avcodec(void); + int avpriv_lock_avformat(void); int avpriv_unlock_avformat(void); |