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
badcd3da
Commit
badcd3da
authored
Jul 24, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print a warning instead of requesting a sample for an invalid exif tag.
Fixes ticket #3792. Reviewed-by: Thilo Borgmann
parent
f7539562
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
exif.c
libavcodec/exif.c
+5
-0
No files found.
libavcodec/exif.c
View file @
badcd3da
...
...
@@ -47,6 +47,11 @@ static int exif_add_metadata(AVCodecContext *avctx, int count, int type,
AVDictionary
**
metadata
)
{
switch
(
type
)
{
case
0
:
av_log
(
avctx
,
AV_LOG_WARNING
,
"Invalid TIFF tag type 0 found for %s with size %d
\n
"
,
name
,
count
);
return
0
;
case
TIFF_DOUBLE
:
return
ff_tadd_doubles_metadata
(
count
,
name
,
sep
,
gb
,
le
,
metadata
);
case
TIFF_SSHORT
:
return
ff_tadd_shorts_metadata
(
count
,
name
,
sep
,
gb
,
le
,
1
,
metadata
);
case
TIFF_SHORT
:
return
ff_tadd_shorts_metadata
(
count
,
name
,
sep
,
gb
,
le
,
0
,
metadata
);
...
...
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