| 34 | #include "libavutil/refstruct.h" |
| 35 | |
| 36 | av_cold int ff_ffv1_common_init(AVCodecContext *avctx, FFV1Context *s) |
| 37 | { |
| 38 | if (!avctx->width || !avctx->height) |
| 39 | return AVERROR_INVALIDDATA; |
| 40 | |
| 41 | s->avctx = avctx; |
| 42 | s->flags = avctx->flags; |
| 43 | |
| 44 | s->width = avctx->width; |
| 45 | s->height = avctx->height; |
| 46 | |
| 47 | // defaults |
| 48 | s->num_h_slices = 1; |
| 49 | s->num_v_slices = 1; |
| 50 | |
| 51 | return 0; |
| 52 | } |
| 53 | |
| 54 | static void planes_free(AVRefStructOpaque opaque, void *obj) |
| 55 | { |
no outgoing calls
no test coverage detected