Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
bdd53052
Commit
bdd53052
authored
Dec 27, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* 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
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/demux/mpeg/mpga.c
modules/demux/mpeg/mpga.c
+8
-2
No files found.
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/22 02:24:52 sam
Exp $
* $Id: mpga.c,v 1.1
3 2003/12/27 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
Markdown
is supported
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