X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fa52.h;h=204be334fd9b8dfbe22ac1b191f65676d80efe8d;hb=d3ecf748b0b9815f6472988282ca8812a3de251a;hp=824ef1009d278990936bbcef7f0cdbb1dd19544c;hpb=d2f4a3f8dad20e098b85d1c714476f75fce9c23a;p=vlc diff --git a/modules/codec/a52.h b/modules/codec/a52.h index 824ef1009d..204be334fd 100644 --- a/modules/codec/a52.h +++ b/modules/codec/a52.h @@ -54,6 +54,7 @@ typedef struct unsigned int i_bitrate; unsigned int i_size; + unsigned int i_samples; } vlc_a52_header_t; @@ -122,6 +123,8 @@ static inline int vlc_a52_header_ParseAc3( vlc_a52_header_t *p_header, default: return VLC_EGENERIC; } + p_header->i_samples = 6*256; + p_header->b_eac3 = false; return VLC_SUCCESS; } @@ -170,6 +173,7 @@ static inline int vlc_a52_header_ParseEac3( vlc_a52_header_t *p_header, p_header->i_channels = p_acmod[i_acmod].i_count + i_lfeon; p_header->i_channels_conf = p_acmod[i_acmod].i_configuration | ( i_lfeon ? AOUT_CHAN_LFE : 0); p_header->i_bitrate = 8 * p_header->i_size * (p_header->i_rate) / (i_numblkscod * 256); + p_header->i_samples = i_numblkscod * 256; p_header->b_eac3 = true; return VLC_SUCCESS;