Hi Thomas,
> +static int add_doubles_metadata(const uint8_t **buf, int count,
> + const char *name, const char *sep,
> + TiffContext *s)
> +{
> + char *ap;
> + int i;
> + double *dp = av_malloc(count * type_sizes[TIFF_DOUBLE]);
[...]
> +static int add_shorts_metadata(const uint8_t **buf, int count, const char
> *name,
> + const char *sep, TiffContext *s)
> +{
> + char *ap;
> + int i;
> + int *sp = av_malloc(count * type_sizes[TIFF_DOUBLE]);
[...]
> + case TIFF_GEO_DOUBLE_PARAMS:
> + dp = av_malloc(count * type_sizes[TIFF_DOUBLE]);
Those av_malloc() should use sizeof(int) and sizeof(double) instead of
type_sizes[]. The TIFF data is converted to native types in the tget_*
functions.
Thanks,
Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel