| 104 | } |
| 105 | |
| 106 | int ff_set_sar(AVCodecContext *avctx, AVRational sar) |
| 107 | { |
| 108 | int ret = av_image_check_sar(avctx->width, avctx->height, sar); |
| 109 | |
| 110 | if (ret < 0) { |
| 111 | av_log(avctx, AV_LOG_WARNING, "ignoring invalid SAR: %d/%d\n", |
| 112 | sar.num, sar.den); |
| 113 | avctx->sample_aspect_ratio = (AVRational){ 0, 1 }; |
| 114 | return ret; |
| 115 | } else { |
| 116 | avctx->sample_aspect_ratio = sar; |
| 117 | } |
| 118 | return 0; |
| 119 | } |
| 120 | |
| 121 | int ff_side_data_update_matrix_encoding(AVFrame *frame, |
| 122 | enum AVMatrixEncoding matrix_encoding) |
no test coverage detected