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
2245476e
Commit
2245476e
authored
Oct 29, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice: remove usage of deprecated setter and getter functions
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
5cc5130c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
avdevice.c
libavdevice/avdevice.c
+2
-2
decklink_dec.cpp
libavdevice/decklink_dec.cpp
+1
-1
libndi_newtek_dec.c
libavdevice/libndi_newtek_dec.c
+1
-1
No files found.
libavdevice/avdevice.c
View file @
2245476e
...
...
@@ -135,9 +135,9 @@ int avdevice_app_to_dev_control_message(struct AVFormatContext *s, enum AVAppToD
int
avdevice_dev_to_app_control_message
(
struct
AVFormatContext
*
s
,
enum
AVDevToAppMessageType
type
,
void
*
data
,
size_t
data_size
)
{
if
(
!
av_format_get_control_message_cb
(
s
)
)
if
(
!
s
->
control_message_cb
)
return
AVERROR
(
ENOSYS
);
return
av_format_get_control_message_cb
(
s
)
(
s
,
type
,
data
,
data_size
);
return
s
->
control_message_cb
(
s
,
type
,
data
,
data_size
);
}
int
avdevice_capabilities_create
(
AVDeviceCapabilitiesQuery
**
caps
,
AVFormatContext
*
s
,
...
...
libavdevice/decklink_dec.cpp
View file @
2245476e
...
...
@@ -959,7 +959,7 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
st
->
time_base
.
den
=
ctx
->
bmd_tb_den
;
st
->
time_base
.
num
=
ctx
->
bmd_tb_num
;
av_stream_set_r_frame_rate
(
st
,
av_make_q
(
st
->
time_base
.
den
,
st
->
time_base
.
num
));
st
->
r_frame_rate
=
av_make_q
(
st
->
time_base
.
den
,
st
->
time_base
.
num
));
switch
((
BMDPixelFormat
)
cctx
->
raw_format
)
{
case
bmdFormat8BitYUV
:
...
...
libavdevice/libndi_newtek_dec.c
View file @
2245476e
...
...
@@ -189,7 +189,7 @@ static int ndi_create_video_stream(AVFormatContext *avctx, NDIlib_video_frame_t
}
st
->
time_base
=
NDI_TIME_BASE_Q
;
av_stream_set_r_frame_rate
(
st
,
av_make_q
(
v
->
frame_rate_N
,
v
->
frame_rate_D
));
st
->
r_frame_rate
=
av_make_q
(
v
->
frame_rate_N
,
v
->
frame_rate_D
));
tmp
=
av_mul_q
(
av_d2q
(
v
->
picture_aspect_ratio
,
INT_MAX
),
(
AVRational
){
v
->
yres
,
v
->
xres
});
av_reduce
(
&
st
->
sample_aspect_ratio
.
num
,
&
st
->
sample_aspect_ratio
.
den
,
tmp
.
num
,
tmp
.
den
,
1000
);
...
...
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