aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_demux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-17 10:33:00 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-30 09:52:00 +0100
commit924a6f3cc7788e2d258348b1547a49805091ea2d (patch)
treef63063f99c42a9b60a052476414a0b1deaa1a750 /fftools/ffmpeg_demux.c
parentb2a0a2e6f531afa75c59c917c53b8ccee07d3655 (diff)
downloadffmpeg-924a6f3cc7788e2d258348b1547a49805091ea2d.tar.gz
fftools/ffmpeg_dec: override video SAR with AVCodecParameters value
Rather than access the AVStream one. This is a step towards decoupling Decoder and InputStream.
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r--fftools/ffmpeg_demux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 11db118b72..a58217223b 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1336,6 +1336,9 @@ static int ist_add(const OptionsContext *o, Demuxer *d, AVStream *st)
return ret;
}
+ if (ist->st->sample_aspect_ratio.num)
+ ist->par->sample_aspect_ratio = ist->st->sample_aspect_ratio;
+
MATCH_PER_STREAM_OPT(bitstream_filters, str, bsfs, ic, st);
if (bsfs) {
ret = av_bsf_list_parse_str(bsfs, &ds->bsf);