Commit 10cb8ee1 authored by Roberto Corno's avatar Roberto Corno Committed by Jean-Paul Saman

dr_03: variable_rate_audio_indicator inserted in audio stream descriptor

Added variable_rate_audio_indicator.
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 316d502b
/***************************************************************************** /*****************************************************************************
* dr_03.c * dr_03.c
* Copyright (C) 2001-2011 VideoLAN * Copyright (C) 2001-2012 VideoLAN
* $Id: dr_03.c,v 1.4 2003/07/25 20:20:40 fenrir Exp $ * $Id: dr_03.c,v 1.4 2003/07/25 20:20:40 fenrir Exp $
* *
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> * Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
...@@ -70,6 +70,7 @@ dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -70,6 +70,7 @@ dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor)
p_decoded->b_free_format = (p_descriptor->p_data[0] & 0x80) ? 1 : 0; p_decoded->b_free_format = (p_descriptor->p_data[0] & 0x80) ? 1 : 0;
p_decoded->i_id = (p_descriptor->p_data[0] & 0x40) >> 6; p_decoded->i_id = (p_descriptor->p_data[0] & 0x40) >> 6;
p_decoded->i_layer = (p_descriptor->p_data[0] & 0x30) >> 4; p_decoded->i_layer = (p_descriptor->p_data[0] & 0x30) >> 4;
p_decoded->b_variable_rate_audio_indicator = (p_descriptor->p_data[0] & 0x08) >> 3;
p_descriptor->p_decoded = (void*)p_decoded; p_descriptor->p_decoded = (void*)p_decoded;
...@@ -94,6 +95,8 @@ dvbpsi_descriptor_t * dvbpsi_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded, ...@@ -94,6 +95,8 @@ dvbpsi_descriptor_t * dvbpsi_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded,
*p_descriptor->p_data |= 0x80; *p_descriptor->p_data |= 0x80;
*p_descriptor->p_data |= (p_decoded->i_id & 0x01) << 6; *p_descriptor->p_data |= (p_decoded->i_id & 0x01) << 6;
*p_descriptor->p_data |= (p_decoded->i_layer & 0x03) << 4; *p_descriptor->p_data |= (p_decoded->i_layer & 0x03) << 4;
if(p_decoded->b_variable_rate_audio_indicator)
*p_descriptor->p_data |= 0x08;
if(b_duplicate) if(b_duplicate)
{ {
......
/***************************************************************************** /*****************************************************************************
* dr_03.h * dr_03.h
* Copyright (C) 2001-2010 VideoLAN * Copyright (C) 2001-2012 VideoLAN
* $Id: dr_03.h,v 1.2 2002/05/10 23:50:36 bozo Exp $ * $Id: dr_03.h,v 1.2 2002/05/10 23:50:36 bozo Exp $
* *
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> * Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
...@@ -56,9 +56,10 @@ extern "C" { ...@@ -56,9 +56,10 @@ extern "C" {
*/ */
typedef struct dvbpsi_astream_dr_s typedef struct dvbpsi_astream_dr_s
{ {
bool b_free_format; /*!< free_format_flag */ bool b_free_format; /*!< free_format_flag */
uint8_t i_id; /*!< ID */ uint8_t i_id; /*!< ID */
uint8_t i_layer; /*!< layer */ uint8_t i_layer; /*!< layer */
bool b_variable_rate_audio_indicator; /*!< variable_rate_audio_indicator */
} dvbpsi_astream_dr_t; } dvbpsi_astream_dr_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment