1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/exif: print bytes and undefined types as scalar lists

This prevents odd characters from ending in the fate test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-09-24 20:52:16 +02:00
parent 7859e89ff0
commit e40c96513e
2 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ static int exif_add_metadata(AVCodecContext *avctx, int count, int type,
case TIFF_DOUBLE : return ff_tadd_doubles_metadata(count, name, sep, gb, le, metadata);
case TIFF_SHORT : return ff_tadd_shorts_metadata(count, name, sep, gb, le, metadata);
case TIFF_BYTE :
case TIFF_UNDEFINED:
case TIFF_UNDEFINED: return ff_tadd_bytes_metadata(count, name, sep, gb, le, metadata);
case TIFF_STRING : return ff_tadd_string_metadata(count, name, gb, le, metadata);
case TIFF_SRATIONAL:
case TIFF_RATIONAL : return ff_tadd_rational_metadata(count, name, sep, gb, le, metadata);

View File

@ -31,10 +31,10 @@ TAG:YCbCrPositioning=2
TAG:ExposureTime=1:1250
TAG:FNumber=40:10
TAG:ISOSpeedRatings=160
TAG:ExifVersion=0221
TAG:ExifVersion=48, 50, 50, 49
TAG:DateTimeOriginal=2013:07:18 13:12:03
TAG:DateTimeDigitized=2013:07:18 13:12:03
TAG:ComponentsConfiguration=
TAG:ComponentsConfiguration=1, 2, 3, 0
TAG:CompressedBitsPerPixel=3:1
TAG:ShutterSpeedValue=329:32
TAG:ApertureValue=128:32
@ -43,21 +43,21 @@ TAG:MaxApertureValue=113:32
TAG:MeteringMode=5
TAG:Flash=16
TAG:FocalLength=5000:1000
TAG:MakerNote=
TAG:UserComment=
TAG:FlashpixVersion=0100
TAG:MakerNote=25, 0, 1, 0, 3, 0, 48, 0, 0, 0, 28, 4, 0, 0, 2, 0, 3, 0, 4, 0, 0, 0, 124, 4, 0, 0, 3, 0, 3, 0, 4, 0, 0, 0, 132, 4, 0, 0, 4, 0, 3, 0, 34, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
TAG:FlashpixVersion=48, 49, 48, 48
TAG:ColorSpace=1
TAG:PixelXDimension=4000
TAG:PixelYDimension=2248
TAG:GPSLatitudeRef=R98
TAG:GPSLatitude=0100
TAG:GPSLatitude=48, 49, 48, 48
TAG:0x1001=4000
TAG:0x1002=2248
TAG:FocalPlaneXResolution=4000000:244
TAG:FocalPlaneYResolution=2248000:183
TAG:FocalPlaneResolutionUnit=2
TAG:SensingMethod=2
TAG:FileSource=
TAG:FileSource=3
TAG:CustomRendered=0
TAG:ExposureMode=0
TAG:WhiteBalance=0