1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
This commit is contained in:
Tobias Rapp
2017-09-14 14:03:28 +02:00
parent 3af1060319
commit 35d6be199a

View File

@@ -1810,7 +1810,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
stype = vs_pack[3] & 0x1f; stype = vs_pack[3] & 0x1f;
pal = (vs_pack[3] >> 5) & 0x1; pal = (vs_pack[3] >> 5) & 0x1;
if ((vs_pack[2] & 0x07) == 0x02) if ((vsc_pack[2] & 0x07) == 0x02)
sc->aspect_ratio = (AVRational){ 16, 9 }; sc->aspect_ratio = (AVRational){ 16, 9 };
else else
sc->aspect_ratio = (AVRational){ 4, 3 }; sc->aspect_ratio = (AVRational){ 4, 3 };