Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a3b15e41
Commit
a3b15e41
authored
Jun 03, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.
parent
1572484f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fbdev.c
libavdevice/fbdev.c
+1
-1
v4l2.c
libavdevice/v4l2.c
+2
-2
No files found.
libavdevice/fbdev.c
View file @
a3b15e41
...
...
@@ -169,7 +169,7 @@ av_cold static int fbdev_read_header(AVFormatContext *avctx,
st
->
codec
->
width
=
fbdev
->
width
;
st
->
codec
->
height
=
fbdev
->
heigth
;
st
->
codec
->
pix_fmt
=
pix_fmt
;
st
->
codec
->
time_base
=
ap
->
time_base
;
st
->
codec
->
time_base
=
(
AVRational
){
fbdev
->
fps
.
den
,
fbdev
->
fps
.
num
}
;
st
->
codec
->
bit_rate
=
fbdev
->
width
*
fbdev
->
heigth
*
fbdev
->
bytes_per_pixel
*
av_q2d
(
fbdev
->
fps
)
*
8
;
...
...
libavdevice/v4l2.c
View file @
a3b15e41
...
...
@@ -546,6 +546,8 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
return
AVERROR
(
errno
);
}
}
s1
->
streams
[
0
]
->
codec
->
time_base
.
den
=
tpf
->
denominator
;
s1
->
streams
[
0
]
->
codec
->
time_base
.
num
=
tpf
->
numerator
;
return
0
;
}
...
...
@@ -679,8 +681,6 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
st
->
codec
->
codec_id
=
codec_id
;
st
->
codec
->
width
=
s
->
width
;
st
->
codec
->
height
=
s
->
height
;
st
->
codec
->
time_base
.
den
=
ap
->
time_base
.
den
;
st
->
codec
->
time_base
.
num
=
ap
->
time_base
.
num
;
st
->
codec
->
bit_rate
=
s
->
frame_size
*
1
/
av_q2d
(
st
->
codec
->
time_base
)
*
8
;
out:
...
...
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