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
2202af20
Commit
2202af20
authored
Dec 01, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* video: display "more than 5 seconds of late video..." only once.
parent
feaa6639
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
12 deletions
+40
-12
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+8
-1
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+32
-11
No files found.
modules/codec/ffmpeg/ffmpeg.c
View file @
2202af20
...
...
@@ -2,7 +2,7 @@
* ffmpeg.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ffmpeg.c,v 1.6
6 2003/11/30 22:14:39
fenrir Exp $
* $Id: ffmpeg.c,v 1.6
7 2003/12/01 09:39:04
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -508,6 +508,13 @@ int E_(GetFfmpegCodec)( vlc_fourcc_t i_fourcc, int *pi_cat,
psz_name
=
"Creative Logic AccuPak"
;
break
;
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'0'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'3'
):
i_cat
=
VIDEO_ES
;
i_codec
=
CODEC_ID_RV10
;
psz_name
=
"Real video"
;
break
;
#if LIBAVCODEC_BUILD >= 4683
/* Apple Video */
case
VLC_FOURCC
(
'r'
,
'p'
,
'z'
,
'a'
):
...
...
modules/codec/ffmpeg/video.c
View file @
2202af20
...
...
@@ -2,7 +2,7 @@
* video.c: video decoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.5
5 2003/11/29 18:06:12
fenrir Exp $
* $Id: video.c,v 1.5
6 2003/12/01 09:39:04
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -282,6 +282,23 @@ int E_(InitVideoDec)( decoder_t *p_dec, AVCodecContext *p_context,
memset
(
&
p
[
4
],
0
,
8
);
memcpy
(
&
p
[
12
],
p_dec
->
fmt_in
.
p_extra
,
i_size
);
}
else
if
(
p_dec
->
fmt_in
.
i_codec
==
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'0'
)
||
p_dec
->
fmt_in
.
i_codec
==
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'3'
)
||
p_dec
->
fmt_in
.
i_codec
==
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'0'
)
)
{
if
(
p_dec
->
fmt_in
.
i_extra
==
8
)
{
p_sys
->
p_context
->
extradata_size
=
8
;
p_sys
->
p_context
->
extradata
=
malloc
(
8
);
memcpy
(
p_sys
->
p_context
->
extradata
,
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
p_sys
->
p_context
->
sub_id
=
((
uint32_t
*
)
p_dec
->
fmt_in
.
p_extra
)[
1
];
msg_Warn
(
p_dec
,
"using extra data for RV codec sub_id=%08x"
,
p_sys
->
p_context
->
sub_id
);
}
}
else
{
p_sys
->
p_context
->
extradata_size
=
i_size
;
...
...
@@ -344,6 +361,20 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
return
NULL
;
}
if
(
p_sys
->
i_late_frames
>
0
&&
mdate
()
-
p_sys
->
i_late_frames_start
>
I64C
(
5000000
)
)
{
if
(
p_sys
->
i_pts
)
{
msg_Err
(
p_dec
,
"more than 5 seconds of late video -> "
"dropping frame (computer too slow ?)"
);
p_sys
->
i_pts
=
0
;
/* To make sure we recover properly */
}
block_Release
(
p_block
);
p_sys
->
i_late_frames
--
;
return
NULL
;
}
if
(
p_block
->
i_pts
>
0
||
p_block
->
i_dts
>
0
)
{
p_sys
->
input_pts
=
p_block
->
i_pts
;
...
...
@@ -379,16 +410,6 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
p_sys
->
p_context
->
hurry_up
=
0
;
}
if
(
p_sys
->
i_late_frames
>
0
&&
mdate
()
-
p_sys
->
i_late_frames_start
>
I64C
(
5000000
)
)
{
msg_Err
(
p_dec
,
"more than 5 seconds of late video -> "
"dropping frame (computer too slow ?)"
);
block_Release
(
p_block
);
p_sys
->
i_pts
=
0
;
/* To make sure we recover properly */
p_sys
->
i_late_frames
--
;
return
NULL
;
}
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