| 70 | } |
| 71 | |
| 72 | av_cold int ff_thread_init(AVCodecContext *avctx) |
| 73 | { |
| 74 | validate_thread_parameters(avctx); |
| 75 | |
| 76 | if (avctx->active_thread_type&FF_THREAD_SLICE) |
| 77 | return ff_slice_thread_init(avctx); |
| 78 | else if (avctx->active_thread_type&FF_THREAD_FRAME) |
| 79 | return ff_frame_thread_init(avctx); |
| 80 | |
| 81 | return 0; |
| 82 | } |
| 83 | |
| 84 | av_cold void ff_thread_free(AVCodecContext *avctx) |
| 85 | { |
no test coverage detected