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
6e08e54f
Commit
6e08e54f
authored
Dec 05, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/libmpeg2.c: fixed a couple of crashes on bad files.
parent
222d4881
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+9
-4
No files found.
modules/codec/libmpeg2.c
View file @
6e08e54f
...
...
@@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.3
5 2003/11/24 23:22:01
gbazin Exp $
* $Id: libmpeg2.c,v 1.3
6 2003/12/05 14:58:03
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -178,8 +178,9 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
return
NULL
;
}
if
(
p_block
->
b_discontinuity
&&
p_sys
->
p_synchro
&&
p_sys
->
p_info
->
sequence
->
width
!=
(
unsigned
)
-
1
)
if
(
p_block
->
b_discontinuity
&&
p_sys
->
p_synchro
&&
p_sys
->
p_info
->
sequence
&&
p_sys
->
p_info
->
sequence
->
width
!=
(
unsigned
)
-
1
)
{
vout_SynchroReset
(
p_sys
->
p_synchro
);
if
(
p_sys
->
p_info
->
current_fbuf
!=
NULL
...
...
@@ -420,7 +421,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
(
(
p_sys
->
p_info
->
current_picture
->
flags
&
PIC_MASK_CODING_TYPE
)
!=
B_CODING_TYPE
)
)
{
vout_SynchroReset
(
p_sys
->
p_synchro
);
if
(
p_sys
->
p_synchro
)
vout_SynchroReset
(
p_sys
->
p_synchro
);
}
mpeg2_skip
(
p_sys
->
p_mpeg2dec
,
1
);
p_sys
->
b_skip
=
1
;
...
...
@@ -431,6 +432,10 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_sys
->
b_garbage_pic
=
1
;
p_pic
=
p_sys
->
p_info
->
current_fbuf
->
id
;
}
else
if
(
!
p_sys
->
p_info
->
sequence
)
{
break
;
}
else
{
if
(
(
p_pic
=
GetNewPicture
(
p_dec
,
buf
))
==
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