[vlc-commits] demux: mp4: set single field interlacing
Francois Cartegnie
git at videolan.org
Tue Jan 21 16:53:44 CET 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 20 18:03:11 2020 +0100| [72e9af9fcfca2dd6b54b670d64904e7ab7075797] | committer: Francois Cartegnie
demux: mp4: set single field interlacing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72e9af9fcfca2dd6b54b670d64904e7ab7075797
---
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 dd7f1cd344..c9dacb9079 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2455,7 +2455,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