History

avcodec/vp8: Change criterion for calling ff_thread_finish_setup()

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.

Andreas Rheinhardt committed 2 years ago

Commit d525dbb1 parent e37e9d51 file · +1 −1Browse files

Unified · Split

libavcodec/vp8.c+1−1
@@ -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) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t