Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
bdd53052
Commit
bdd53052
authored
Dec 27, 2003
by
Cyril Deguet
Browse files
* modules/demux/mpeg/mpga.c: disabled the bitrate detection from the Xing
header, since it doesn't seem to be reliable
parent
7c20b517
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/mpeg/mpga.c
View file @
bdd53052
...
...
@@ -2,7 +2,7 @@
* mpga.c : MPEG-I/II Audio input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mpga.c,v 1.1
2
2003/12/2
2 02:24:52 sam
Exp $
* $Id: mpga.c,v 1.1
3
2003/12/2
7 14:47:10 asmax
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -252,6 +252,7 @@ static int Open( vlc_object_t * p_this )
char
psz_description
[
50
];
p_sys
->
i_bitrate_avg
=
MPGA_BITRATE
(
header
)
*
1000
;
fprintf
(
stderr
,
"rate1 %d
\n
"
,
p_sys
->
i_bitrate_avg
);
if
(
(
i_xing
=
stream_Peek
(
p_input
->
s
,
&
p_xing
,
1024
)
)
>=
21
)
{
int
i_skip
;
...
...
@@ -288,12 +289,17 @@ static int Open( vlc_object_t * p_this )
{
i_skip
+=
100
;
}
#if 0
// FIXME: doesn't return the right bitrage average, at least with some MP3's
if( i_flags&0x08 && i_skip + 4 <= i_xing ) /* XING_VBR */
{
p_sys->i_bitrate_avg = GetDWBE( &p_xing[i_skip] );
fprintf(stderr,"rate2 %d\n", p_sys->i_bitrate_avg);
msg_Dbg( p_input, "xing vbr value present (%d)", p_sys->i_bitrate_avg );
}
else
if
(
i_frames
>
0
&&
i_bytes
>
0
)
else
#endif
if
(
i_frames
>
0
&&
i_bytes
>
0
)
{
p_sys
->
i_bitrate_avg
=
(
int64_t
)
i_bytes
*
(
int64_t
)
8
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment