smoothstreamingenc: Copy the SAR on the AVStreams as well
This is required in chained muxers, if the SAR happens to be set. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
0ccf051a9d
commit
71908f0838
@ -239,6 +239,7 @@ static int ism_write_header(AVFormatContext *s)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
avcodec_copy_context(st->codec, s->streams[i]->codec);
|
avcodec_copy_context(st->codec, s->streams[i]->codec);
|
||||||
|
st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
|
||||||
|
|
||||||
ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os, NULL, ism_write, ism_seek);
|
ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os, NULL, ism_write, ism_seek);
|
||||||
if (!ctx->pb) {
|
if (!ctx->pb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user