lavc/mjpegdec: Set sar for multiscope videos.

Fixes decoding of the files from ticket #4535 visually.
This commit is contained in:
Carl Eugen Hoyos 2016-03-09 14:06:40 +01:00
parent a6a52ef29a
commit 260c12cdd1
1 changed files with 3 additions and 1 deletions

View File

@ -1878,8 +1878,10 @@ static int mjpeg_decode_com(MJpegDecodeContext *s)
else if ((!strncmp(cbuf, "Intel(R) JPEG Library, version 1", 32) && s->avctx->codec_tag) || else if ((!strncmp(cbuf, "Intel(R) JPEG Library, version 1", 32) && s->avctx->codec_tag) ||
(!strncmp(cbuf, "Metasoft MJPEG Codec", 20))) (!strncmp(cbuf, "Metasoft MJPEG Codec", 20)))
s->flipped = 1; s->flipped = 1;
else if (!strcmp(cbuf, "MULTISCOPE II")) else if (!strcmp(cbuf, "MULTISCOPE II")) {
s->avctx->sample_aspect_ratio = (AVRational) { 1, 2 };
s->multiscope = 2; s->multiscope = 2;
}
av_free(cbuf); av_free(cbuf);
} }