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
65682322
Commit
65682322
authored
Mar 26, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_videotoolbox: fix usage of av_get_codec_tag_string()
parent
fa0a8faa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ffmpeg_videotoolbox.c
ffmpeg_videotoolbox.c
+2
-3
No files found.
ffmpeg_videotoolbox.c
View file @
65682322
...
...
@@ -48,7 +48,6 @@ static int videotoolbox_retrieve_data(AVCodecContext *s, AVFrame *frame)
uint8_t
*
data
[
4
]
=
{
0
};
int
linesize
[
4
]
=
{
0
};
int
planes
,
ret
,
i
;
char
codec_str
[
32
];
av_frame_unref
(
vt
->
tmp_frame
);
...
...
@@ -60,9 +59,9 @@ static int videotoolbox_retrieve_data(AVCodecContext *s, AVFrame *frame)
case
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
:
vt
->
tmp_frame
->
format
=
AV_PIX_FMT_NV12
;
break
;
#endif
default:
av_get_codec_tag_string
(
codec_str
,
sizeof
(
codec_str
),
s
->
codec_tag
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"%s: Unsupported pixel format: %s
\n
"
,
codec_str
,
videotoolbox_pixfmt
);
"%s: Unsupported pixel format: %s
\n
"
,
av_fourcc2str
(
s
->
codec_tag
),
videotoolbox_pixfmt
);
return
AVERROR
(
ENOSYS
);
}
...
...
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