Skip to content

Commit

Permalink
fix: error with f_auto AV1 (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi authored Jan 22, 2025
1 parent c2c9bed commit b172e18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/cloudinary/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const cloudinaryErrorsConverter = ({ errorMsg, publicId, cloudName, statusCode }
};

export const VIDEO_CODEC = {
AV1: 'av1',
VP9: 'vp9',
HEV1: 'hev1',
H265: 'h265',
Expand All @@ -119,9 +120,11 @@ const setupCloudinaryMiddleware = () => {
credentials: srcObj.withCredentials ? 'include' : 'omit'
});

const mimetype = headers.get('content-type').split(';')[0];

return next(null, {
src: srcObj.src,
type: headers.get('content-type')
type: mimetype
});
}
};
Expand Down

0 comments on commit b172e18

Please sign in to comment.