]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pthread.c
jpeglsdec: move pict debug log under correct if()
[ffmpeg] / libavcodec / pthread.c
index e951032722c37b2160932e9d3eff22b3f32c309e..c0a872eba04240a8062899df7ffa3255927317af 100644 (file)
@@ -387,6 +387,10 @@ static attribute_align_arg void *frame_worker_thread(void *arg)
         p->got_frame = 0;
         p->result = codec->decode(avctx, &p->frame, &p->got_frame, &p->avpkt);
 
+        /* many decoders assign whole AVFrames, thus overwriting extended_data;
+         * make sure it's set correctly */
+        p->frame.extended_data = p->frame.data;
+
         if (p->state == STATE_SETTING_UP) ff_thread_finish_setup(avctx);
 
         pthread_mutex_lock(&p->progress_mutex);