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
3801da9d
Commit
3801da9d
authored
Feb 08, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed various decoder/packetizer flush.
parent
d042c129
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
21 deletions
+26
-21
modules/codec/a52.c
modules/codec/a52.c
+1
-1
modules/codec/dts.c
modules/codec/dts.c
+1
-1
modules/codec/flac.c
modules/codec/flac.c
+1
-1
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+1
-1
modules/packetizer/h264.c
modules/packetizer/h264.c
+4
-1
modules/packetizer/mlp.c
modules/packetizer/mlp.c
+1
-1
modules/packetizer/mpeg4audio.c
modules/packetizer/mpeg4audio.c
+2
-2
modules/packetizer/mpeg4video.c
modules/packetizer/mpeg4video.c
+8
-8
modules/packetizer/mpegvideo.c
modules/packetizer/mpegvideo.c
+5
-3
modules/packetizer/vc1.c
modules/packetizer/vc1.c
+2
-2
No files found.
modules/codec/a52.c
View file @
3801da9d
...
...
@@ -189,7 +189,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
}
aout_DateSet
(
&
p_sys
->
end_date
,
0
);
block_Release
(
*
pp_block
);
...
...
modules/codec/dts.c
View file @
3801da9d
...
...
@@ -189,7 +189,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
}
aout_DateSet
(
&
p_sys
->
end_date
,
0
);
block_Release
(
*
pp_block
);
...
...
modules/codec/flac.c
View file @
3801da9d
...
...
@@ -386,7 +386,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
}
aout_DateSet
(
&
p_sys
->
end_date
,
0
);
block_Release
(
*
pp_block
);
...
...
modules/codec/mpeg_audio.c
View file @
3801da9d
...
...
@@ -208,7 +208,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
}
aout_DateSet
(
&
p_sys
->
end_date
,
0
);
block_Release
(
*
pp_block
);
...
...
modules/packetizer/h264.c
View file @
3801da9d
...
...
@@ -421,7 +421,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
if
(
p_sys
->
p_frame
)
block_ChainRelease
(
p_sys
->
p_frame
);
...
...
@@ -429,6 +429,9 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
p_sys
->
slice
.
i_frame_type
=
0
;
p_sys
->
b_slice
=
false
;
}
p_sys
->
i_frame_pts
=
-
1
;
p_sys
->
i_frame_dts
=
-
1
;
block_Release
(
*
pp_block
);
return
NULL
;
}
...
...
modules/packetizer/mlp.c
View file @
3801da9d
...
...
@@ -165,7 +165,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
{
p_sys
->
b_mlp
=
false
;
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
}
aout_DateSet
(
&
p_sys
->
end_date
,
0
);
block_Release
(
*
pp_block
);
...
...
modules/packetizer/mpeg4audio.c
View file @
3801da9d
...
...
@@ -972,9 +972,9 @@ static block_t *PacketizeStreamBlock( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
}
//
aout_DateSet( &p_sys->end_date, 0 );
aout_DateSet
(
&
p_sys
->
end_date
,
0
);
block_Release
(
*
pp_block
);
return
NULL
;
}
...
...
modules/packetizer/mpeg4video.c
View file @
3801da9d
...
...
@@ -229,20 +229,20 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
if
(
p_sys
->
p_frame
)
block_ChainRelease
(
p_sys
->
p_frame
);
p_sys
->
p_frame
=
NULL
;
p_sys
->
pp_last
=
&
p_sys
->
p_frame
;
}
//
p_sys->i_interpolated_pts =
//
p_sys->i_interpolated_dts =
//
p_sys->i_last_ref_pts =
//
p_sys->i_last_time_ref =
//
p_sys->i_time_ref =
//
p_sys->i_last_time =
//
p_sys->i_last_timeincr = 0;
p_sys
->
i_interpolated_pts
=
p_sys
->
i_interpolated_dts
=
p_sys
->
i_last_ref_pts
=
p_sys
->
i_last_time_ref
=
p_sys
->
i_time_ref
=
p_sys
->
i_last_time
=
p_sys
->
i_last_timeincr
=
0
;
block_Release
(
*
pp_block
);
return
NULL
;
...
...
modules/packetizer/mpegvideo.c
View file @
3801da9d
...
...
@@ -263,7 +263,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
p_sys
->
b_discontinuity
=
true
;
if
(
p_sys
->
p_frame
)
...
...
@@ -272,8 +272,10 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
p_sys
->
pp_last
=
&
p_sys
->
p_frame
;
p_sys
->
b_frame_slice
=
false
;
}
// p_sys->i_interpolated_dts =
// p_sys->i_last_ref_pts = 0;
p_sys
->
i_dts
=
0
;
p_sys
->
i_pts
=
0
;
p_sys
->
i_interpolated_dts
=
0
;
p_sys
->
i_last_ref_pts
=
0
;
block_Release
(
*
pp_block
);
return
NULL
;
...
...
modules/packetizer/vc1.c
View file @
3801da9d
...
...
@@ -203,7 +203,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Bytestream
Flush
(
&
p_sys
->
bytestream
);
block_Bytestream
Empty
(
&
p_sys
->
bytestream
);
if
(
p_sys
->
p_frame
)
block_ChainRelease
(
p_sys
->
p_frame
);
...
...
@@ -211,7 +211,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
p_sys
->
pp_last
=
&
p_sys
->
p_frame
;
p_sys
->
b_frame
=
false
;
}
//
p_sys->i_interpolated_dts = 0;
p_sys
->
i_interpolated_dts
=
0
;
block_Release
(
*
pp_block
);
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