[vlc-commits] demux: mkv: readd missing AV1 temporal delimiter after demux

Francois Cartegnie git at videolan.org
Wed Oct 10 11:47:01 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 10 11:45:29 2018 +0200| [7f8079692efce04977de79d1c050e23477dc76d3] | committer: Francois Cartegnie

demux: mkv: readd missing AV1 temporal delimiter after demux

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

 modules/demux/mkv/mkv.cpp | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 615160f063..9529f198d9 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -648,6 +648,21 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
                 p_block->p_buffer[ p_block->i_buffer - 1 ] = 0x3f; // end marker
             }
             break;
+
+          case VLC_CODEC_AV1:
+            {
+                if( (p_block->p_buffer[0] & 0x81) == 0 && /* reserved flags */
+                    (p_block->p_buffer[0] & 0x7A) != 0x12 ) /* no starting TEMPORAL_DELIMITER */
+                {
+                    p_block = block_Realloc( p_block, 2, p_block->i_buffer );
+                    if( p_block )
+                    {
+                        p_block->p_buffer[0] = 0x12;
+                        p_block->p_buffer[1] = 0x00;
+                    }
+                }
+            }
+            break;
         }
 
         if( track.fmt.i_cat != VIDEO_ES )



More information about the vlc-commits mailing list