Commit 35d6be19 authored by Tobias Rapp's avatar Tobias Rapp

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

Signed-off-by: 's avatarTobias Rapp <t.rapp@noa-archive.com>
parent 3af10603
...@@ -1810,7 +1810,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt) ...@@ -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 };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment