From a94de50ba02f5c260ca7c571b43fb595c8f951b6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 20 Apr 2014 02:58:02 +0200 Subject: 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 Signed-off-by: Michael Niedermayer --- libavcodec/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/tiff.c') 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; }; -- cgit v1.2.3