Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
c309365f
Commit
c309365f
authored
May 23, 2005
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation for LIBAVCODEC_BUILD==4754
parent
963cb8f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vnc2mpg.c
client_examples/vnc2mpg.c
+5
-0
No files found.
client_examples/vnc2mpg.c
View file @
c309365f
...
@@ -65,8 +65,13 @@ AVStream *add_video_stream(AVFormatContext *oc, int codec_id, int w, int h)
...
@@ -65,8 +65,13 @@ AVStream *add_video_stream(AVFormatContext *oc, int codec_id, int w, int h)
c
->
width
=
w
;
c
->
width
=
w
;
c
->
height
=
h
;
c
->
height
=
h
;
/* frames per second */
/* frames per second */
#if LIBAVCODEC_BUILD<4754
c
->
frame_rate
=
STREAM_FRAME_RATE
;
c
->
frame_rate
=
STREAM_FRAME_RATE
;
c
->
frame_rate_base
=
1
;
c
->
frame_rate_base
=
1
;
#else
c
->
time_base
.
den
=
STREAM_FRAME_RATE
;
c
->
time_base
.
num
=
1
;
#endif
c
->
gop_size
=
12
;
/* emit one intra frame every twelve frames at most */
c
->
gop_size
=
12
;
/* emit one intra frame every twelve frames at most */
if
(
c
->
codec_id
==
CODEC_ID_MPEG2VIDEO
)
{
if
(
c
->
codec_id
==
CODEC_ID_MPEG2VIDEO
)
{
/* just for testing, we also add B frames */
/* just for testing, we also add B frames */
...
...
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