smoothstreamingenc: Copy the SAR on the AVStreams as well
authorMartin Storsjö <martin@martin.st>
Sat, 22 Sep 2012 21:18:23 +0000 (00:18 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 23 Sep 2012 18:28:58 +0000 (21:28 +0300)
This is required in chained muxers, if the SAR happens to be set.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/smoothstreamingenc.c

index 08e6526..339a9bb 100644 (file)
@@ -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) {