]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/internal.h
avcodec/on2avc: Fix out of array access
[ffmpeg] / libavcodec / internal.h
index 9afbba7b44fb16d673a0efb86f87058e93af19f7..e00aad94313f035aaa475cc908e79763c5dd0254 100644 (file)
@@ -240,6 +240,12 @@ const uint8_t *avpriv_find_start_code(const uint8_t *p,
  */
 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.
  */