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
2067ae4c
Commit
2067ae4c
authored
Aug 19, 2007
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/mpeg_audio.c: fixes for free format support.
parent
706d6346
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+6
-2
No files found.
modules/codec/mpeg_audio.c
View file @
2067ae4c
...
...
@@ -298,12 +298,13 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
p_sys
->
i_bit_rate
==
0
)
{
/* Free birate, but 99% emulated startcode :( */
/* Free bi
t
rate, but 99% emulated startcode :( */
if
(
p_dec
->
p_sys
->
i_free_frame_size
==
MPGA_HEADER_SIZE
)
{
msg_Dbg
(
p_dec
,
"free bitrate mode"
);
}
p_sys
->
i_frame_size
=
p_sys
->
i_free_frame_size
;
/* The -1 below is to account for the frame padding */
p_sys
->
i_frame_size
=
p_sys
->
i_free_frame_size
-
1
;
}
p_sys
->
i_state
=
STATE_NEXT_SYNC
;
...
...
@@ -705,6 +706,9 @@ static int SyncInfo( uint32_t i_header, unsigned int * pi_channels,
default:
break
;
}
/* Free bitrate mode can support higher bitrates */
if
(
!*
pi_bit_rate
)
*
pi_max_frame_size
*=
2
;
}
else
{
...
...
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