fftools/ffmpeg_dec: override video SAR with AVCodecParameters value

Rather than access the AVStream one.

This is a step towards decoupling Decoder and InputStream.
This commit is contained in:
Anton Khirnov
2024-01-17 10:33:00 +01:00
parent b2a0a2e6f5
commit 924a6f3cc7
2 changed files with 10 additions and 2 deletions

View File

@@ -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);