[vlc-commits] demux: avi: force packetizer for QNAP codecs

Francois Cartegnie git at videolan.org
Tue Jul 9 14:45:20 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jul  9 14:43:38 2019 +0200| [8b8718cd6be010196316f029126ec8541e1d273b] | committer: Francois Cartegnie

demux: avi: force packetizer for QNAP codecs

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

 modules/demux/avi/avi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 373793c6f1..db4659a1b3 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -615,6 +615,9 @@ static int Open( vlc_object_t * p_this )
                     tk->fmt.i_original_fourcc = VLC_FOURCC( 'X', 'V', 'I', 'D' );
                 }
 
+                if( IsQNAPCodec( tk->fmt.i_codec ) )
+                    tk->fmt.b_packetized = false;
+
                 tk->i_samplesize = 0;
                 tk->fmt.video.i_frame_rate = tk->i_rate;
                 tk->fmt.video.i_frame_rate_base = tk->i_scale;



More information about the vlc-commits mailing list