[vlc-commits] packetizer: mpegvideo: flag interlaced frames

Francois Cartegnie git at videolan.org
Fri Feb 17 11:15:00 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 15 19:37:15 2017 +0100| [65faaab7629bb1fefbef27efe36b12433917f28c] | committer: Francois Cartegnie

packetizer: mpegvideo: flag interlaced frames

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

 modules/packetizer/mpegvideo.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index 5850a6e..de69570 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -439,6 +439,12 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
             }
         }
 
+        if( p_sys->i_picture_structure == 0x03 && !p_sys->b_seq_progressive )
+        {
+            p_pic->i_flags |= (p_sys->i_top_field_first) ? BLOCK_FLAG_TOP_FIELD_FIRST
+                                                         : BLOCK_FLAG_BOTTOM_FIELD_FIRST;
+        }
+
         if( p_sys->b_low_delay || p_sys->i_picture_type == 0x03 )
         {
             /* Trivial case (DTS == PTS) */



More information about the vlc-commits mailing list