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
7e894c89
Commit
7e894c89
authored
Feb 20, 2004
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/packetizer/mpegvideo.c: display the picture size and frame rate
exactly once.
parent
c73cac4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
modules/packetizer/mpegvideo.c
modules/packetizer/mpegvideo.c
+10
-6
No files found.
modules/packetizer/mpegvideo.c
View file @
7e894c89
...
...
@@ -2,7 +2,7 @@
* mpegvideo.c: parse and packetize an MPEG1/2 video stream
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mpegvideo.c,v 1.2
8 2004/01/27 14:05:33 gbazin
Exp $
* $Id: mpegvideo.c,v 1.2
9 2004/02/20 18:24:41 massiot
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -76,7 +76,7 @@ struct decoder_sys_t
int
i_offset
;
uint8_t
p_startcode
[
3
];
/* Sequence header and exten
t
ion */
/* Sequence header and exten
s
ion */
block_t
*
p_seq
;
block_t
*
p_ext
;
...
...
@@ -92,6 +92,7 @@ struct decoder_sys_t
vlc_bool_t
b_seq_progressive
;
vlc_bool_t
b_low_delay
;
int
i_aspect_ratio_info
;
vlc_bool_t
b_inited
;
/* Picture properties */
int
i_temporal_ref
;
...
...
@@ -105,7 +106,7 @@ struct decoder_sys_t
mtime_t
i_old_duration
;
mtime_t
i_last_ref_pts
;
/* Number of pictues since last sequence header */
/* Number of pictu
r
es since last sequence header */
int
i_seq_old
;
};
...
...
@@ -162,6 +163,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_top_field_first
=
0
;
p_sys
->
i_repeat_first_field
=
0
;
p_sys
->
i_progressive_frame
=
0
;
p_sys
->
b_inited
=
0
;
p_sys
->
i_interpolated_dts
=
0
;
p_sys
->
i_old_duration
=
0
;
...
...
@@ -484,11 +486,13 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
p_sys
->
b_seq_progressive
=
VLC_TRUE
;
p_sys
->
b_low_delay
=
VLC_TRUE
;
#if 0
msg_Dbg( p_dec, "Size %dx%d fps=%.3f",
if
(
!
p_sys
->
b_inited
)
{
msg_Dbg
(
p_dec
,
"Size %dx%d fps=%.3f"
,
p_dec
->
fmt_out
.
video
.
i_width
,
p_dec
->
fmt_out
.
video
.
i_height
,
p_sys
->
i_frame_rate
/
(
float
)
p_sys
->
i_frame_rate_base
);
#endif
p_sys
->
b_inited
=
1
;
}
}
else
if
(
p_frag
->
p_buffer
[
3
]
==
0xb5
)
{
...
...
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