[vlc-commits] demux: mp4: set single field interlacing

Francois Cartegnie git at videolan.org
Tue Jan 21 16:57:58 CET 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 20 18:03:11 2020 +0100| [d64efcf17d7068dbce49b9a30fada96be2ddbdad] | committer: Francois Cartegnie

demux: mp4: set single field interlacing

(cherry picked from commit 72e9af9fcfca2dd6b54b670d64904e7ab7075797)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d64efcf17d7068dbce49b9a30fada96be2ddbdad
---

 modules/demux/mp4/libmp4.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index f0ae9b5ad8..2a64f4abdd 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2509,7 +2509,9 @@ static int MP4_ReadBox_fiel( stream_t *p_stream, MP4_Box_t *p_box )
          * 9 – B is displayed earliest, T is stored first in the file.
          * 14 – T is displayed earliest, B is stored first in the file.
         */
-        if(p_peek[1] == 1 || p_peek[1] == 9)
+        if(p_peek[1] == 0)
+            p_fiel->i_flags = BLOCK_FLAG_SINGLE_FIELD;
+        else if(p_peek[1] == 1 || p_peek[1] == 9)
             p_fiel->i_flags = BLOCK_FLAG_TOP_FIELD_FIRST;
         else if(p_peek[1] == 6 || p_peek[1] == 14)
             p_fiel->i_flags = BLOCK_FLAG_BOTTOM_FIELD_FIRST;



More information about the vlc-commits mailing list