lavdev/lavfi: set sample aspect ratio in the output stream/codec context
[ffmpeg.git] / libavdevice / lavfi.c
index 2249264..7987430 100644 (file)
@@ -198,6 +198,8 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
             st->codec->time_base  = link->time_base;
             st->codec->width      = link->w;
             st->codec->height     = link->h;
+            st       ->sample_aspect_ratio =
+            st->codec->sample_aspect_ratio = link->sample_aspect_ratio;
         }
     }