Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
ea14ba77
Commit
ea14ba77
authored
May 03, 2003
by
Christophe Massiot
Browse files
Fixed handling of STATE_INVALID states.
parent
ef46a906
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/libmpeg2.c
View file @
ea14ba77
...
...
@@ -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
4
2003/0
4/22 23:31:07 gbazin
Exp $
* $Id: libmpeg2.c,v 1.1
5
2003/0
5/03 22:25:44 massiot
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -337,8 +337,25 @@ static int RunDecoder( decoder_fifo_t *p_fifo )
break
;
case
STATE_INVALID
:
{
uint8_t
*
buf
[
3
];
buf
[
0
]
=
buf
[
1
]
=
buf
[
2
]
=
NULL
;
msg_Warn
(
p_dec
->
p_fifo
,
"invalid picture encountered"
);
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
)
{
p_pic
=
(
picture_t
*
)
p_dec
->
p_info
->
discard_fbuf
->
id
;
vout_UnlinkPicture
(
p_dec
->
p_vout
,
p_pic
);
}
break
;
}
default:
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