Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
dd6bbcec
Commit
dd6bbcec
authored
Nov 16, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/video.c, src/input/input_dec.c: a couple of fixes. Thanks fenrir :)
parent
b42629db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+1
-3
src/input/input_dec.c
src/input/input_dec.c
+4
-3
No files found.
modules/codec/ffmpeg/video.c
View file @
dd6bbcec
...
@@ -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.4
4 2003/11/16 21:07:31
gbazin Exp $
* $Id: video.c,v 1.4
5 2003/11/16 22:23:47
gbazin 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>
...
@@ -355,7 +355,6 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
...
@@ -355,7 +355,6 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
p_sys
->
input_pts
=
p_block
->
i_pts
;
p_sys
->
input_pts
=
p_block
->
i_pts
;
}
}
#if 0
/* TODO implement it in a better way */
/* TODO implement it in a better way */
/* A good idea could be to decode all I pictures and see for the other */
/* A good idea could be to decode all I pictures and see for the other */
if
(
p_sys
->
b_hurry_up
&&
p_sys
->
i_late_frames
>
4
)
if
(
p_sys
->
b_hurry_up
&&
p_sys
->
i_late_frames
>
4
)
...
@@ -392,7 +391,6 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
...
@@ -392,7 +391,6 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
p_sys
->
i_late_frames
--
;
p_sys
->
i_late_frames
--
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
#endif
if
(
!
p_sys
->
p_context
->
width
||
!
p_sys
->
p_context
->
height
)
if
(
!
p_sys
->
p_context
->
width
||
!
p_sys
->
p_context
->
height
)
{
{
...
...
src/input/input_dec.c
View file @
dd6bbcec
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
* input_dec.c: Functions for the management of decoders
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.6
7 2003/11/16 21:07:31
gbazin Exp $
* $Id: input_dec.c,v 1.6
8 2003/11/16 22:23:47
gbazin Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -495,12 +495,13 @@ static int DecoderThread( decoder_t * p_dec )
...
@@ -495,12 +495,13 @@ static int DecoderThread( decoder_t * p_dec )
p_dec
->
fmt_out
.
audio
.
i_rate
;
p_dec
->
fmt_out
.
audio
.
i_rate
;
sout_format
.
i_channels
=
sout_format
.
i_channels
=
p_dec
->
fmt_out
.
audio
.
i_channels
;
p_dec
->
fmt_out
.
audio
.
i_channels
;
sout_format
.
i_block_align
=
p_dec
->
fmt_out
.
audio
.
i_blockalign
;
sout_format
.
i_width
=
sout_format
.
i_width
=
p_dec
->
fmt_out
.
video
.
i_width
;
p_dec
->
fmt_out
.
video
.
i_width
;
sout_format
.
i_height
=
sout_format
.
i_height
=
p_dec
->
fmt_out
.
video
.
i_height
;
p_dec
->
fmt_out
.
video
.
i_height
;
sout_format
.
i_block_align
=
0
;
sout_format
.
i_bitrate
=
p_dec
->
fmt_out
.
i_bitrate
;
//sout_format.i_bitrate = p_dec->fmt_out.i_bit_rate;
sout_format
.
i_extra_data
=
p_dec
->
fmt_out
.
i_extra
;
sout_format
.
i_extra_data
=
p_dec
->
fmt_out
.
i_extra
;
sout_format
.
p_extra_data
=
p_dec
->
fmt_out
.
p_extra
;
sout_format
.
p_extra_data
=
p_dec
->
fmt_out
.
p_extra
;
...
...
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