vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Jul 19 
17:14:35 2019 +0200| [e9b64c1da9c125b553ec85e90cad9fae58796a2a] | committer: 
Francois Cartegnie

packetizer: h264: set proper DPB for baseline profile

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

 modules/packetizer/h264_nal.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index 0cf35899ab..e75c87a602 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -734,6 +734,9 @@ bool h264_get_dpb_values( const 
h264_sequence_parameter_set_t *p_sps,
     {
         switch( p_sps->i_profile ) /* E-2.1 */
         {
+            case PROFILE_H264_BASELINE:
+                i_max_num_reorder_frames = 0; /* only I & P */
+                break;
             case PROFILE_H264_CAVLC_INTRA:
             case PROFILE_H264_SVC_HIGH:
             case PROFILE_H264_HIGH:

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to