Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c299138f
Commit
c299138f
authored
Nov 27, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: drop block(s) with b_discontinuity set.
parent
e5c71f3f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
modules/codec/ffmpeg/audio.c
modules/codec/ffmpeg/audio.c
+2
-2
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+11
-2
No files found.
modules/codec/ffmpeg/audio.c
View file @
c299138f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* audio.c: audio decoder using ffmpeg library
* audio.c: audio decoder using ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2003 VideoLAN
* Copyright (C) 1999-2003 VideoLAN
* $Id: audio.c,v 1.2
6 2003/11/24 00:39:01
fenrir Exp $
* $Id: audio.c,v 1.2
7 2003/11/27 12:32:03
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -157,7 +157,7 @@ aout_buffer_t *E_( DecodeAudio )( decoder_t *p_dec, block_t **pp_block )
...
@@ -157,7 +157,7 @@ aout_buffer_t *E_( DecodeAudio )( decoder_t *p_dec, block_t **pp_block )
return
NULL
;
return
NULL
;
}
}
if
(
p_block
->
i_buffer
<=
0
)
if
(
p_block
->
i_buffer
<=
0
||
p_block
->
b_discontinuity
)
{
{
block_Release
(
p_block
);
block_Release
(
p_block
);
return
NULL
;
return
NULL
;
...
...
modules/codec/ffmpeg/video.c
View file @
c299138f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* video.c: video decoder using the ffmpeg library
* video.c: video decoder using the ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.5
3 2003/11/24 23:22:01 gbazin
Exp $
* $Id: video.c,v 1.5
4 2003/11/27 12:32:03 fenrir
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -349,6 +349,15 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
...
@@ -349,6 +349,15 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
p_block
=
*
pp_block
;
p_block
=
*
pp_block
;
if
(
p_block
->
b_discontinuity
)
{
p_sys
->
i_buffer
=
0
;
p_sys
->
i_pts
=
0
;
/* To make sure we recover properly */
block_Release
(
p_block
);
return
NULL
;
}
if
(
p_block
->
i_pts
>
0
||
p_block
->
i_dts
>
0
)
if
(
p_block
->
i_pts
>
0
||
p_block
->
i_dts
>
0
)
{
{
p_sys
->
input_pts
=
p_block
->
i_pts
;
p_sys
->
input_pts
=
p_block
->
i_pts
;
...
@@ -392,7 +401,7 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
...
@@ -392,7 +401,7 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
block_Release
(
p_block
);
block_Release
(
p_block
);
p_sys
->
i_pts
=
0
;
/* To make sure we recover properly */
p_sys
->
i_pts
=
0
;
/* To make sure we recover properly */
p_sys
->
i_late_frames
--
;
p_sys
->
i_late_frames
--
;
return
VLC_SUCCESS
;
return
NULL
;
}
}
if
(
p_sys
->
p_context
->
width
<=
0
||
p_sys
->
p_context
->
height
<=
0
)
if
(
p_sys
->
p_context
->
width
<=
0
||
p_sys
->
p_context
->
height
<=
0
)
...
...
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