summaryrefslogtreecommitdiff
path: root/libavcodec/frame_thread_encoder.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-09-18 03:24:52 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-09-18 03:24:52 +0200
commit3118e81f86067e8f04d729b070fc90ca2c9090d8 (patch)
tree24f61a3d6ec7cd4cb9d58627aebdc87962099e39 /libavcodec/frame_thread_encoder.c
parent7323c896b2cb6b2f3c0643094d6dd3e1d7179690 (diff)
downloadffmpeg-3118e81f86067e8f04d729b070fc90ca2c9090d8.tar.gz
lavc/frame_thread_encoder: Do not mix variable declaration and code.
Fixes a warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'libavcodec/frame_thread_encoder.c')
-rw-r--r--libavcodec/frame_thread_encoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c
index 31a9fe9dae..ffbf5caf29 100644
--- a/libavcodec/frame_thread_encoder.c
+++ b/libavcodec/frame_thread_encoder.c
@@ -193,13 +193,14 @@ int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options){
for(i=0; i<avctx->thread_count ; i++){
AVDictionary *tmp = NULL;
+ int ret;
void *tmpv;
AVCodecContext *thread_avctx = avcodec_alloc_context3(avctx->codec);
if(!thread_avctx)
goto fail;
tmpv = thread_avctx->priv_data;
*thread_avctx = *avctx;
- int ret = av_opt_copy(thread_avctx, avctx);
+ ret = av_opt_copy(thread_avctx, avctx);
if (ret < 0)
goto fail;
thread_avctx->priv_data = tmpv;