> On Sep 9, 2020, at 04:40, Andreas Rheinhardt <andreas.rheinha...@gmail.com> > wrote: > > rcombs: >> --- >> libavcodec/codec_desc.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c >> index 3dee640360..49a00ad264 100644 >> --- a/libavcodec/codec_desc.c >> +++ b/libavcodec/codec_desc.c >> @@ -82,7 +82,7 @@ static const AVCodecDescriptor codec_descriptors[] = { >> .name = "mjpeg", >> .long_name = NULL_IF_CONFIG_SMALL("Motion JPEG"), >> .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY, >> - .mime_types= MT("image/jpeg"), >> + .mime_types= MT("image/jpeg", "image/jpg"), >> .profiles = NULL_IF_CONFIG_SMALL(ff_mjpeg_profiles), >> }, >> { >> @@ -588,7 +588,7 @@ static const AVCodecDescriptor codec_descriptors[] = { >> .name = "bmp", >> .long_name = NULL_IF_CONFIG_SMALL("BMP (Windows and OS/2 bitmap)"), >> .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, >> - .mime_types= MT("image/x-ms-bmp"), >> + .mime_types= MT("image/x-ms-bmp", "image/bmp"), >> }, >> { >> .id = AV_CODEC_ID_CSCD, >> > The mime types should be sorted by "best match first". Is x-ms-bmp > really better than just bmp?
For some (pseudo-)codecs it might be better to prefer an older type name for compatibility (e.g. TTFs should be muxed in MKV as application/x-truetype-font rather than font/ttf for compatibility with players that don't yet handle font/ttf as a font), but yeah in this case image/bmp is better-supported and should go first; fixed. > > - Andreas > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org <mailto:ffmpeg-devel@ffmpeg.org> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel> > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org <mailto:ffmpeg-devel-requ...@ffmpeg.org> with > subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".