[vlc-commits] demux: mp4: fix broken interlaced flag
Francois Cartegnie
git at videolan.org
Tue Jan 21 16:57:57 CET 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 20 17:58:24 2020 +0100| [a619fa8c02368f4af99a235e7b27c58da19496e3] | 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.
(cherry picked from commit 25414c1a47d1d93f368ec1269087d2f979732b05)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a619fa8c02368f4af99a235e7b27c58da19496e3
---
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 e3ea40ce03..f0ae9b5ad8 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2500,11 +2500,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