[vlc-commits] demux: ts: set bitrate

Francois Cartegnie git at videolan.org
Wed Feb 7 18:05:35 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb  7 17:37:21 2018 +0100| [13671dc63f4102f0f190b56611a65bb7aa9e7ef2] | committer: Francois Cartegnie

demux: ts: set bitrate

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

 modules/demux/mpeg/ts_psi.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index e9c942d376..9100f829b4 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -528,6 +528,14 @@ static void SetupStandardESDescriptors( demux_t *p_demux, ts_es_t *p_es,
                      p_es->fmt.i_codec != VLC_CODEC_TELETEXT) )
                     SetupISO639Descriptor( p_demux, p_es, p_dr );
                 break;
+
+            case 0x0E:
+            {
+                dvbpsi_max_bitrate_dr_t *p_btdr = dvbpsi_DecodeMaxBitrateDr( p_dr );
+                if( p_btdr && !p_es->fmt.i_bitrate )
+                    p_es->fmt.i_bitrate = p_btdr->i_max_bitrate * 50 * 8;
+            }
+            break;
         }
     }
 }



More information about the vlc-commits mailing list