| 158 | } |
| 159 | |
| 160 | static int fuzz_get_buffer2(AVCodecContext *ctx, AVFrame *frame, int flags) |
| 161 | { |
| 162 | switch (ctx->codec_type) { |
| 163 | case AVMEDIA_TYPE_VIDEO: |
| 164 | return (ctx->codec->capabilities & AV_CODEC_CAP_DR1) |
| 165 | ? fuzz_video_get_buffer(ctx, frame) |
| 166 | : avcodec_default_get_buffer2(ctx, frame, flags); |
| 167 | case AVMEDIA_TYPE_AUDIO: |
| 168 | return avcodec_default_get_buffer2(ctx, frame, flags); |
| 169 | default: |
| 170 | return AVERROR(EINVAL); |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
| 175 | uint64_t maxpixels_per_frame = 4096 * 4096; |
nothing calls this directly
no test coverage detected