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
30fc7105
Commit
30fc7105
authored
May 11, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: print a matching tag in case of code tag validation failure
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
44391f70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
utils.c
libavformat/utils.c
+4
-3
No files found.
libavformat/utils.c
View file @
30fc7105
...
@@ -3179,11 +3179,12 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
...
@@ -3179,11 +3179,12 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
}
}
if
(
st
->
codec
->
codec_tag
){
if
(
st
->
codec
->
codec_tag
){
if
(
!
validate_codec_tag
(
s
,
st
))
{
if
(
!
validate_codec_tag
(
s
,
st
))
{
char
tagbuf
[
32
];
char
tagbuf
[
32
]
,
cortag
[
32
]
;
av_get_codec_tag_string
(
tagbuf
,
sizeof
(
tagbuf
),
st
->
codec
->
codec_tag
);
av_get_codec_tag_string
(
tagbuf
,
sizeof
(
tagbuf
),
st
->
codec
->
codec_tag
);
av_get_codec_tag_string
(
cortag
,
sizeof
(
cortag
),
av_codec_get_tag
(
s
->
oformat
->
codec_tag
,
st
->
codec
->
codec_id
));
av_log
(
s
,
AV_LOG_ERROR
,
av_log
(
s
,
AV_LOG_ERROR
,
"Tag %s/0x%08x incompatible with output codec id '%d'
\n
"
,
"Tag %s/0x%08x incompatible with output codec id '%d'
(%s)
\n
"
,
tagbuf
,
st
->
codec
->
codec_tag
,
st
->
codec
->
codec_id
);
tagbuf
,
st
->
codec
->
codec_tag
,
st
->
codec
->
codec_id
,
cortag
);
ret
=
AVERROR_INVALIDDATA
;
ret
=
AVERROR_INVALIDDATA
;
goto
fail
;
goto
fail
;
}
}
...
...
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