| 89 | } |
| 90 | |
| 91 | int ff_set_dimensions(AVCodecContext *s, int width, int height) |
| 92 | { |
| 93 | int ret = av_image_check_size2(width, height, s->max_pixels, AV_PIX_FMT_NONE, 0, s); |
| 94 | |
| 95 | if (ret < 0) |
| 96 | width = height = 0; |
| 97 | |
| 98 | s->coded_width = width; |
| 99 | s->coded_height = height; |
| 100 | s->width = AV_CEIL_RSHIFT(width, s->lowres); |
| 101 | s->height = AV_CEIL_RSHIFT(height, s->lowres); |
| 102 | |
| 103 | return ret; |
| 104 | } |
| 105 | |
| 106 | int ff_set_sar(AVCodecContext *avctx, AVRational sar) |
| 107 | { |
no test coverage detected