The current criterion is to check for the existence of update_thread_context. Change this to check for whether we are actually decoding VP8 (and not VP7 or VP8-in-WebP). This is equivalent to the current criterion, but allows the WebP decoder to evolve and to get its own update_thread_context.
Unified · Split
| @@ -2754,7 +2754,7 @@ int vp78_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, · 2753 unmodified lines | |||
| 2754 | 2754 | ||
| 2755 | s->next_framep[VP8_FRAME_CURRENT] = curframe; | 2755 | s->next_framep[VP8_FRAME_CURRENT] = curframe; |
| 2756 | 2756 | ||
| 2757 | if (ffcodec(avctx->codec)->update_thread_context) | 2757 | if (!is_vp7 && !s->actually_webp) |
| 2758 | ff_thread_finish_setup(avctx); | 2758 | ff_thread_finish_setup(avctx); |
| 2759 | 2759 | ||
| 2760 | if (avctx->hwaccel) { | 2760 | if (avctx->hwaccel) { |