| 67 | } |
| 68 | |
| 69 | static AVClassCategory get_category(void *ptr) |
| 70 | { |
| 71 | AVCodecContext* avctx = ptr; |
| 72 | if (avctx->codec && ff_codec_is_decoder(avctx->codec)) |
| 73 | return AV_CLASS_CATEGORY_DECODER; |
| 74 | else |
| 75 | return AV_CLASS_CATEGORY_ENCODER; |
| 76 | } |
| 77 | |
| 78 | static const AVClass av_codec_context_class = { |
| 79 | .class_name = "AVCodecContext", |
nothing calls this directly
no test coverage detected