*/
int ff_set_dimensions(AVCodecContext *s, int width, int height);
+/**
+ * Check that the provided sample aspect ratio is valid and set it on the codec
+ * context.
+ */
+int ff_set_sar(AVCodecContext *avctx, AVRational sar);
+
/**
* Add or update AV_FRAME_DATA_MATRIXENCODING side data.
*/