mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
avcodecmap: remove deprecated media types
Remove x-xvid and x-3ivx. The last place where they were used are in the srcpad caps of the decoder but since the decoder will never actually output those caps we can safely remove them.
This commit is contained in:
parent
df8674f6c3
commit
9d0e1ecedc
1 changed files with 0 additions and 16 deletions
|
@ -998,10 +998,6 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
|||
gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
|
||||
encode, "video/x-divx", "divxversion", GST_TYPE_INT_RANGE, 4,
|
||||
5, NULL));
|
||||
gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
|
||||
encode, "video/x-xvid", NULL));
|
||||
gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
|
||||
encode, "video/x-3ivx", NULL));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -2938,12 +2934,6 @@ gst_ffmpeg_caps_with_codecid (enum AVCodecID codec_id,
|
|||
|
||||
if (!strcmp (mime, "video/x-divx"))
|
||||
context->codec_tag = GST_MAKE_FOURCC ('D', 'I', 'V', 'X');
|
||||
else if (!strcmp (mime, "video/x-xvid")) {
|
||||
context->codec_tag = GST_MAKE_FOURCC ('X', 'V', 'I', 'D');
|
||||
/* Advanced Simple Profile */
|
||||
context->flags |= CODEC_FLAG_GMC | CODEC_FLAG_QPEL;
|
||||
} else if (!strcmp (mime, "video/x-3ivx"))
|
||||
context->codec_tag = GST_MAKE_FOURCC ('3', 'I', 'V', '1');
|
||||
else if (!strcmp (mime, "video/mpeg")) {
|
||||
const gchar *profile;
|
||||
|
||||
|
@ -3747,12 +3737,6 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
|
|||
}
|
||||
if (id != AV_CODEC_ID_NONE)
|
||||
video = TRUE;
|
||||
} else if (!strcmp (mimetype, "video/x-3ivx")) {
|
||||
id = AV_CODEC_ID_MPEG4;
|
||||
video = TRUE;
|
||||
} else if (!strcmp (mimetype, "video/x-xvid")) {
|
||||
id = AV_CODEC_ID_MPEG4;
|
||||
video = TRUE;
|
||||
} else if (!strcmp (mimetype, "video/x-ffv")) {
|
||||
gint ffvversion = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue