Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
6b171f04
Commit
6b171f04
authored
Feb 10, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/matroskaenc: provide more feedback in case of unsupported codec
Also return meaningful error code.
parent
f0703b6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
matroskaenc.c
libavformat/matroskaenc.c
+6
-4
No files found.
libavformat/matroskaenc.c
View file @
6b171f04
...
...
@@ -498,8 +498,9 @@ static int mkv_write_codecprivate(AVFormatContext *s, AVIOContext *pb, AVCodecCo
if
(
!
codec
->
codec_tag
)
codec
->
codec_tag
=
ff_codec_get_tag
(
ff_codec_bmp_tags
,
codec
->
codec_id
);
if
(
!
codec
->
codec_tag
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"No bmp codec ID found.
\n
"
);
ret
=
-
1
;
av_log
(
s
,
AV_LOG_ERROR
,
"No bmp codec tag found for codec %s
\n
"
,
avcodec_get_name
(
codec
->
codec_id
));
ret
=
AVERROR
(
EINVAL
);
}
ff_put_bmp_header
(
dyn_cp
,
codec
,
ff_codec_bmp_tags
,
0
);
...
...
@@ -509,8 +510,9 @@ static int mkv_write_codecprivate(AVFormatContext *s, AVIOContext *pb, AVCodecCo
unsigned
int
tag
;
tag
=
ff_codec_get_tag
(
ff_codec_wav_tags
,
codec
->
codec_id
);
if
(
!
tag
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"No wav codec ID found.
\n
"
);
ret
=
-
1
;
av_log
(
s
,
AV_LOG_ERROR
,
"No wav codec tag found for codec %s
\n
"
,
avcodec_get_name
(
codec
->
codec_id
));
ret
=
AVERROR
(
EINVAL
);
}
if
(
!
codec
->
codec_tag
)
codec
->
codec_tag
=
tag
;
...
...
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