Skip to content

Commit 2fef7fb

Browse files
inform sar
1 parent 0abee08 commit 2fef7fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

3_transcoding.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ int prepare_video_encoder(StreamingContext *sc, AVCodecContext *decoder_ctx, AVR
9292

9393
sc->video_avcc->height = decoder_ctx->height;
9494
sc->video_avcc->width = decoder_ctx->width;
95+
sc->video_avcc->sample_aspect_ratio = decoder_ctx->sample_aspect_ratio;
9596
if (sc->video_avc->pix_fmts)
9697
sc->video_avcc->pix_fmt = sc->video_avc->pix_fmts[0];
9798
else

0 commit comments

Comments
 (0)