Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
735fedde
Commit
735fedde
authored
May 04, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cleaning of the STATE_INVALID stuff (still not perfect though).
parent
ea14ba77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+12
-9
No files found.
modules/codec/libmpeg2.c
View file @
735fedde
...
...
@@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.1
5 2003/05/03 22:25:44
massiot Exp $
* $Id: libmpeg2.c,v 1.1
6 2003/05/04 01:36:20
massiot Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -342,18 +342,21 @@ static int RunDecoder( decoder_fifo_t *p_fifo )
buf
[
0
]
=
buf
[
1
]
=
buf
[
2
]
=
NULL
;
msg_Warn
(
p_dec
->
p_fifo
,
"invalid picture encountered"
);
vout_SynchroReset
(
p_dec
->
p_synchro
);
if
(
(
p_dec
->
p_info
->
current_picture
->
flags
&
PIC_MASK_CODING_TYPE
)
!=
B_CODING_TYPE
)
{
vout_SynchroReset
(
p_dec
->
p_synchro
);
}
mpeg2_skip
(
p_dec
->
p_mpeg2dec
,
1
);
mpeg2_set_buf
(
p_dec
->
p_mpeg2dec
,
buf
,
NULL
);
if
(
p_dec
->
p_info
->
current_fbuf
!=
NULL
)
p_dec
->
p_picture_to_destroy
=
p_dec
->
p_info
->
current_fbuf
->
id
;
if
(
p_dec
->
p_info
->
discard_fbuf
&&
p_dec
->
p_info
->
discard_fbuf
->
id
)
if
(
p_dec
->
p_info
->
current_fbuf
&&
p_dec
->
p_info
->
current_fbuf
->
id
)
{
p_pic
=
(
picture_t
*
)
p_dec
->
p_info
->
discard
_fbuf
->
id
;
p_pic
=
(
picture_t
*
)
p_dec
->
p_info
->
current
_fbuf
->
id
;
vout_UnlinkPicture
(
p_dec
->
p_vout
,
p_pic
);
vout_DestroyPicture
(
p_dec
->
p_vout
,
p_pic
);
}
mpeg2_set_buf
(
p_dec
->
p_mpeg2dec
,
buf
,
NULL
);
break
;
}
...
...
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