| 848 | } |
| 849 | |
| 850 | const AVCodecHWConfig *avcodec_get_hw_config(const AVCodec *avcodec, int index) |
| 851 | { |
| 852 | const FFCodec *const codec = ffcodec(avcodec); |
| 853 | int i; |
| 854 | if (!codec->hw_configs || index < 0) |
| 855 | return NULL; |
| 856 | for (i = 0; i <= index; i++) |
| 857 | if (!codec->hw_configs[i]) |
| 858 | return NULL; |
| 859 | return &codec->hw_configs[index]->public; |
| 860 | } |
| 861 | |
| 862 | int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src) |
| 863 | { |
no test coverage detected