| 96 | } |
| 97 | |
| 98 | static int nvdec_mpeg12_frame_params(AVCodecContext *avctx, |
| 99 | AVBufferRef *hw_frames_ctx) |
| 100 | { |
| 101 | // Each frame can at most have one P and one B reference |
| 102 | return ff_nvdec_frame_params(avctx, hw_frames_ctx, 2, 0); |
| 103 | } |
| 104 | |
| 105 | #if CONFIG_MPEG2_NVDEC_HWACCEL |
| 106 | const FFHWAccel ff_mpeg2_nvdec_hwaccel = { |
nothing calls this directly
no test coverage detected