diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-20 02:58:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-20 17:01:46 +0200 |
commit | a94de50ba02f5c260ca7c571b43fb595c8f951b6 (patch) | |
tree | 08a113eb6a16415a16c48442fc5ff800e0664c65 /libavcodec/tiff.c | |
parent | cd4faed89378dfb9ba4c985ef661d10c0d7e7b7e (diff) | |
download | ffmpeg-a94de50ba02f5c260ca7c571b43fb595c8f951b6.tar.gz |
avcodec/exif/exif_add_metadata: add support for SSHORT & SBYTE
No working testcase, this omission was just spoted when the parser apparently went out of
sync.
Reviewed-by; Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r-- | libavcodec/tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index af1b4e07b6..c6193ad47a 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -221,7 +221,7 @@ static int add_metadata(int count, int type, { switch(type) { case TIFF_DOUBLE: return ff_tadd_doubles_metadata(count, name, sep, &s->gb, s->le, avpriv_frame_get_metadatap(frame)); - case TIFF_SHORT : return ff_tadd_shorts_metadata(count, name, sep, &s->gb, s->le, avpriv_frame_get_metadatap(frame)); + case TIFF_SHORT : return ff_tadd_shorts_metadata(count, name, sep, &s->gb, s->le, 0, avpriv_frame_get_metadatap(frame)); case TIFF_STRING: return ff_tadd_string_metadata(count, name, &s->gb, s->le, avpriv_frame_get_metadatap(frame)); default : return AVERROR_INVALIDDATA; }; |