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
85c2bf9d
Commit
85c2bf9d
authored
Apr 26, 2017
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfoundation: update to use AVCodecParameters
parent
94c54d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
avfoundation_dec.m
libavdevice/avfoundation_dec.m
+5
-5
No files found.
libavdevice/avfoundation_dec.m
View file @
85c2bf9d
...
...
@@ -449,11 +449,11 @@ static int get_video_config(AVFormatContext *s)
image_buffer
=
ctx
->
current_frame
;
image_buffer_size
=
CVImageBufferGetEncodedSize
(
image_buffer
);
stream
->
codec
->
codec_id
=
AV_CODEC_ID_RAWVIDEO
;
stream
->
codec
->
codec_type
=
AVMEDIA_TYPE_VIDEO
;
stream
->
codec
->
width
=
(
int
)
image_buffer_size
.
width
;
stream
->
codec
->
height
=
(
int
)
image_buffer_size
.
height
;
stream
->
codec
->
pix_fmt
=
av_get_pix_fmt
(
ctx
->
pixel_format
);
stream
->
codec
par
->
codec_id
=
AV_CODEC_ID_RAWVIDEO
;
stream
->
codec
par
->
codec_type
=
AVMEDIA_TYPE_VIDEO
;
stream
->
codec
par
->
width
=
(
int
)
image_buffer_size
.
width
;
stream
->
codec
par
->
height
=
(
int
)
image_buffer_size
.
height
;
stream
->
codec
par
->
format
=
av_get_pix_fmt
(
ctx
->
pixel_format
);
CFRelease
(
ctx
->
current_frame
);
ctx
->
current_frame
=
nil
;
...
...
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