[vlc-commits] demux: mp4: fix broken interlaced flag
Francois Cartegnie
git at videolan.org
Tue Jan 21 16:37:32 CET 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 20 17:58:24 2020 +0100| [25414c1a47d1d93f368ec1269087d2f979732b05] | committer: Francois Cartegnie
demux: mp4: fix broken interlaced flag
It was assumed the fiel atom was describing fields.
Recent spec provides explanation for value 1 as progressive scan.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25414c1a47d1d93f368ec1269087d2f979732b05
---
modules/demux/mp4/libmp4.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index cdb4cd7e3f..dd7f1cd344 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2446,11 +2446,7 @@ static int MP4_ReadBox_fiel( stream_t *p_stream, MP4_Box_t *p_box )
p_fiel = p_box->data.p_fiel;
if(i_read < 2)
MP4_READBOX_EXIT( 0 );
- if(p_peek[0] == 1)
- {
- p_fiel->i_flags = BLOCK_FLAG_SINGLE_FIELD;
- }
- else if(p_peek[0] == 2) /* Interlaced */
+ if(p_peek[0] == 2) /* Interlaced */
{
/*
* 0 – There is only one field.
More information about the vlc-commits
mailing list