• Andreas Rheinhardt's avatar
    avformat/matroskaenc: Improve mimetype search · 3589b3f2
    Andreas Rheinhardt authored
    Use the mime_types of the corresponding AVCodecDescriptor instead of
    tables specific to Matroska. The former are generally more encompassing:
    They contain every item of the current lists except "text/plain" for
    AV_CODEC_ID_TEXT and "binary" for AV_CODEC_ID_BIN_DATA.
    
    The former has been preserved by special-casing it while the latter is
    a hack added in c9212abf so that the demuxer (which uses the same tables)
    sets the appropriate CodecID for broken files ("binary" is not a correct
    mime type at all); using it for the muxer was a mistake. The correct
    mime type for AV_CODEC_ID_BIN_DATA is "application/octet-stream" and
    this is what one gets from the AVCodecDescriptor.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    3589b3f2
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...