Commit f22a8234 authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf

mmal/codec: Fix top_field_first flagging

The logic setting the top_field_first flag was broken as it evaluated the
actual mode in case of progressive instead of in interlaced case.
Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 16a51ea7
...@@ -373,8 +373,8 @@ static int change_output_format(decoder_t *dec) ...@@ -373,8 +373,8 @@ static int change_output_format(decoder_t *dec)
status, mmal_status_to_string(status)); status, mmal_status_to_string(status));
} else { } else {
sys->b_progressive = (interlace_type.eMode == MMAL_InterlaceProgressive); sys->b_progressive = (interlace_type.eMode == MMAL_InterlaceProgressive);
sys->b_top_field_first = sys->b_progressive ? sys->b_top_field_first = sys->b_progressive ? true :
(interlace_type.eMode == MMAL_InterlaceFieldsInterleavedUpperFirst) : false; (interlace_type.eMode == MMAL_InterlaceFieldsInterleavedUpperFirst);
msg_Dbg(dec, "Detected %s video", sys->b_progressive ? "progressive" : "interlaced"); msg_Dbg(dec, "Detected %s video", sys->b_progressive ? "progressive" : "interlaced");
} }
......
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