Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1967b52d
Commit
1967b52d
authored
Feb 13, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few errors in flac packetizer.
parent
447327c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/packetizer/flac.c
modules/packetizer/flac.c
+12
-3
No files found.
modules/packetizer/flac.c
View file @
1967b52d
...
@@ -145,6 +145,7 @@ static void Close( vlc_object_t *p_this )
...
@@ -145,6 +145,7 @@ static void Close( vlc_object_t *p_this )
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
block_BytestreamRelease
(
&
p_sys
->
bytestream
);
free
(
p_sys
);
free
(
p_sys
);
}
}
...
@@ -157,10 +158,10 @@ static void ProcessHeader( decoder_t *p_dec )
...
@@ -157,10 +158,10 @@ static void ProcessHeader( decoder_t *p_dec )
bs_t
bs
;
bs_t
bs
;
if
(
!
p_dec
->
fmt_in
.
i_extra
)
if
(
p_dec
->
fmt_in
.
i_extra
<
8
+
14
)
return
;
return
;
bs_init
(
&
bs
,
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
bs_init
(
&
bs
,
(
uint8_t
*
)
p_dec
->
fmt_in
.
p_extra
+
8
,
p_dec
->
fmt_in
.
i_extra
-
8
);
p_sys
->
stream_info
.
min_blocksize
=
bs_read
(
&
bs
,
16
);
p_sys
->
stream_info
.
min_blocksize
=
bs_read
(
&
bs
,
16
);
p_sys
->
stream_info
.
max_blocksize
=
bs_read
(
&
bs
,
16
);
p_sys
->
stream_info
.
max_blocksize
=
bs_read
(
&
bs
,
16
);
...
@@ -288,7 +289,8 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
...
@@ -288,7 +289,8 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
date_Set
(
&
p_sys
->
end_date
,
p_sys
->
i_pts
);
date_Set
(
&
p_sys
->
end_date
,
p_sys
->
i_pts
);
}
}
p_sys
->
i_state
=
STATE_NEXT_SYNC
;
p_sys
->
i_state
=
STATE_NEXT_SYNC
;
p_sys
->
i_frame_size
=
1
;
p_sys
->
i_frame_size
=
p_sys
->
b_stream_info
&&
p_sys
->
stream_info
.
min_framesize
>
0
?
p_sys
->
stream_info
.
min_framesize
:
1
;
case
STATE_NEXT_SYNC
:
case
STATE_NEXT_SYNC
:
/* TODO: If pp_block == NULL, flush the buffer without checking the
/* TODO: If pp_block == NULL, flush the buffer without checking the
...
@@ -320,6 +322,13 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
...
@@ -320,6 +322,13 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if
(
p_sys
->
i_state
!=
STATE_SEND_DATA
)
if
(
p_sys
->
i_state
!=
STATE_SEND_DATA
)
{
{
if
(
p_sys
->
b_stream_info
&&
p_sys
->
stream_info
.
max_framesize
>
0
&&
p_sys
->
i_frame_size
>
p_sys
->
stream_info
.
max_framesize
)
{
block_SkipByte
(
&
p_sys
->
bytestream
);
p_sys
->
i_state
=
STATE_NOSYNC
;
return
NULL
;
}
/* Need more data */
/* Need more data */
return
NULL
;
return
NULL
;
}
}
...
...
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