Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d0cbf30e
Commit
d0cbf30e
authored
Apr 24, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mpeg4video.c: use video size when available from bitmapinfoheader.
parent
5979db31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
modules/packetizer/mpeg4video.c
modules/packetizer/mpeg4video.c
+13
-3
No files found.
modules/packetizer/mpeg4video.c
View file @
d0cbf30e
...
...
@@ -2,7 +2,7 @@
* mpeg4video.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mpeg4video.c,v 1.1
0 2003/04/13 20:00:21
fenrir Exp $
* $Id: mpeg4video.c,v 1.1
1 2003/04/24 20:24:44
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -377,6 +377,8 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
if
(
p_vol_end
!=
NULL
&&
p_vol_begin
<
p_vol_end
)
{
BITMAPINFOHEADER
*
p_bih
=
(
BITMAPINFOHEADER
*
)
p_pack
->
p_fifo
->
p_bitmapinfoheader
;
p_pack
->
i_vol
=
p_vol_end
-
p_vol_begin
;
msg_Dbg
(
p_pack
->
p_fifo
,
"Reopening output"
);
...
...
@@ -388,8 +390,16 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
p_pack
->
output_format
.
i_cat
=
VIDEO_ES
;
p_pack
->
output_format
.
i_fourcc
=
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
);
if
(
p_bih
)
{
p_pack
->
output_format
.
i_width
=
p_bih
->
biWidth
;
p_pack
->
output_format
.
i_height
=
p_bih
->
biHeight
;
}
else
{
p_pack
->
output_format
.
i_width
=
0
;
p_pack
->
output_format
.
i_height
=
0
;
}
p_pack
->
output_format
.
i_bitrate
=
0
;
p_pack
->
output_format
.
i_extra_data
=
p_pack
->
i_vol
;
...
...
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