diff options
author | Martin Storsjö <martin@martin.st> | 2012-09-23 00:18:23 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-23 21:28:58 +0300 |
commit | 71908f0838126146cbce025dd37787e1b9ca171d (patch) | |
tree | a9e2100097a0f969d4b0367a8f8efbd8a2b16a02 | |
parent | 0ccf051a9def7095ac45b1dca427b39bcf15608d (diff) | |
download | ffmpeg-71908f0838126146cbce025dd37787e1b9ca171d.tar.gz |
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>
-rw-r--r-- | libavformat/smoothstreamingenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 08e6526533..339a9bb08d 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -239,6 +239,7 @@ static int ism_write_header(AVFormatContext *s) goto fail; } 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); if (!ctx->pb) { |