]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/decode.c
avfilter/setpts: add FR shorthand for FRAME_RATE
[ffmpeg] / libavcodec / decode.c
index 421a8f1a3570e4d7dc95efd017ef66da4307b221..6a3a4df1797a93700216ddb1c15e2f3eb863cd17 100644 (file)
@@ -1837,7 +1837,7 @@ static int get_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags)
     int ret;
 
     if (avctx->codec_type == AVMEDIA_TYPE_VIDEO) {
-        if ((ret = av_image_check_size2(avctx->width, avctx->height, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx)) < 0 || avctx->pix_fmt<0) {
+        if ((ret = av_image_check_size2(FFALIGN(avctx->width, STRIDE_ALIGN), avctx->height, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx)) < 0 || avctx->pix_fmt<0) {
             av_log(avctx, AV_LOG_ERROR, "video_get_buffer: image parameters invalid\n");
             return AVERROR(EINVAL);
         }