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
83ff2a11
Commit
83ff2a11
authored
Aug 17, 2011
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: use avcodec_get_name to report missing en/decoders.
parent
d2d7b713
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ffmpeg.c
ffmpeg.c
+4
-4
No files found.
ffmpeg.c
View file @
83ff2a11
...
...
@@ -2436,8 +2436,8 @@ static int transcode(AVFormatContext **output_files,
AVCodec
*
codec
=
ost
->
enc
;
AVCodecContext
*
dec
=
input_streams
[
ost
->
source_index
].
st
->
codec
;
if
(
!
codec
)
{
snprintf
(
error
,
sizeof
(
error
),
"Encoder (codec
id %d
) not found for output stream #%d.%d"
,
ost
->
st
->
codec
->
codec_id
,
ost
->
file_index
,
ost
->
index
);
snprintf
(
error
,
sizeof
(
error
),
"Encoder (codec
%s
) not found for output stream #%d.%d"
,
avcodec_get_name
(
ost
->
st
->
codec
->
codec_id
)
,
ost
->
file_index
,
ost
->
index
);
ret
=
AVERROR
(
EINVAL
);
goto
dump_format
;
}
...
...
@@ -2473,8 +2473,8 @@ static int transcode(AVFormatContext **output_files,
if
(
!
codec
)
codec
=
avcodec_find_decoder
(
ist
->
st
->
codec
->
codec_id
);
if
(
!
codec
)
{
snprintf
(
error
,
sizeof
(
error
),
"Decoder (codec
id %d
) not found for input stream #%d.%d"
,
ist
->
st
->
codec
->
codec_id
,
ist
->
file_index
,
ist
->
st
->
index
);
snprintf
(
error
,
sizeof
(
error
),
"Decoder (codec
%s
) not found for input stream #%d.%d"
,
avcodec_get_name
(
ist
->
st
->
codec
->
codec_id
)
,
ist
->
file_index
,
ist
->
st
->
index
);
ret
=
AVERROR
(
EINVAL
);
goto
dump_format
;
}
...
...
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