Skip to content

Commit

Permalink
support Unicode MP4 filenames @ #5182
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jun 1, 2022
1 parent b8c664e commit 954f929
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions coders/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ static MagickBooleanType IsVIDEO(const unsigned char *magick,
% o exception: return any errors or warnings in this structure.
%
*/

static const char *GetIntermediateFormat(const ImageInfo *image_info)
{
const char
Expand Down Expand Up @@ -257,6 +258,8 @@ static Image *ReadVIDEOImage(const ImageInfo *image_info,
intermediate_format);
(void) ConcatenateMagickString(options,command,MagickPathExtent);
AcquireUniqueFilename(read_info->unique);
(void) AcquireUniqueSymbolicLink(image_info->filename,
read_info->filename);
(void) FormatLocaleString(command,MagickPathExtent,
GetDelegateCommands(delegate_info),read_info->filename,options,
read_info->unique);
Expand All @@ -269,9 +272,11 @@ static Image *ReadVIDEOImage(const ImageInfo *image_info,
command,message,exception);
if (exit_code == 0)
images=ReadImage(read_info,exception);
else if (*message != '\0')
(void) ThrowMagickException(exception,GetMagickModule(),
DelegateError,"VideoDelegateFailed","`%s'",message);
else
if (*message != '\0')
(void) ThrowMagickException(exception,GetMagickModule(),DelegateError,
"VideoDelegateFailed","`%s'",message);
(void) RelinquishUniqueFileResource(read_info->filename);
(void) RelinquishUniqueFileResource(read_info->unique);
if (images != (Image *) NULL)
for (next=images; next != (Image *) NULL; next=next->next)
Expand Down

0 comments on commit 954f929

Please sign in to comment.