diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-04-07 10:17:09 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-04-15 09:04:07 +0200 |
commit | c10d498bfd246a40cc7830838b74e18a79418839 (patch) | |
tree | c25fb041eefb1df030268b6bd517b415f7b1f1c8 /libavcodec/h263dec.c | |
parent | 8067f55edf3719182aed6e5b57b7863889f80218 (diff) | |
download | ffmpeg-c10d498bfd246a40cc7830838b74e18a79418839.tar.gz |
Add thread-safe wrapper for get_format().
Just like get_buffer, get_format should not be called from a different
thread if thread_safe_callbacks is not set.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 405d3c68fd..cc87bc7dee 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -64,7 +64,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) if (avctx->codec->id == AV_CODEC_ID_MSS2) avctx->pix_fmt = AV_PIX_FMT_YUV420P; else - avctx->pix_fmt = avctx->get_format(avctx, avctx->codec->pix_fmts); + avctx->pix_fmt = ff_thread_get_format(avctx, avctx->codec->pix_fmts); s->unrestricted_mv= 1; /* select sub codec */ |