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
7fdad1d9
Commit
7fdad1d9
authored
Jul 09, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/flac.c: couple of fixes.
parent
a01f44d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/codec/flac.c
modules/codec/flac.c
+8
-4
No files found.
modules/codec/flac.c
View file @
7fdad1d9
...
...
@@ -230,12 +230,13 @@ static int OpenPacketizer( vlc_object_t *p_this )
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
/* Hmmm, mem leak ?*/
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
int
i_ret
=
OpenDecoder
(
p_this
);
if
(
i_ret
!=
VLC_SUCCESS
)
return
i_ret
;
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
return
i_ret
;
}
...
...
@@ -258,6 +259,11 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
block_Release
(
*
pp_block
);
return
NULL
;
}
else
if
(
!
aout_DateGet
(
&
p_sys
->
end_date
)
)
{
/* The first PTS is as good as anything else. */
aout_DateSet
(
&
p_sys
->
end_date
,
(
*
pp_block
)
->
i_pts
);
}
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_DISCONTINUITY
)
{
...
...
@@ -325,7 +331,6 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
{
p_dec
->
fmt_out
.
audio
.
i_rate
=
p_sys
->
i_rate
;
aout_DateInit
(
&
p_sys
->
end_date
,
p_sys
->
i_rate
);
p_dec
->
fmt_out
.
audio
.
i_rate
=
p_sys
->
i_rate
;
}
p_sys
->
i_state
=
STATE_NEXT_SYNC
;
p_sys
->
i_frame_size
=
1
;
...
...
@@ -364,7 +369,6 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
/* Need more data */
return
NULL
;
}
break
;
case
STATE_SEND_DATA
:
p_sout_block
=
block_New
(
p_dec
,
p_sys
->
i_frame_size
);
...
...
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