mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
Enable gif format, and make it so avdemux_gif and avdec_gif can autoplug
https://bugzilla.gnome.org/show_bug.cgi?id=784684
This commit is contained in:
parent
3b8171ac37
commit
d5b0305241
3 changed files with 4 additions and 5 deletions
|
@ -1621,8 +1621,8 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
||||||
|
|
||||||
case AV_CODEC_ID_GIF:
|
case AV_CODEC_ID_GIF:
|
||||||
caps =
|
caps =
|
||||||
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "image/gif",
|
gst_ff_vid_caps_new (context, NULL, codec_id, encode,
|
||||||
NULL);
|
"image/gst-libav-gif", "parsed", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AV_CODEC_ID_PNG:
|
case AV_CODEC_ID_PNG:
|
||||||
|
|
|
@ -2087,7 +2087,7 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
|
||||||
!strcmp (in_plugin->name, "mpc8") ||
|
!strcmp (in_plugin->name, "mpc8") ||
|
||||||
!strcmp (in_plugin->name, "ivf") ||
|
!strcmp (in_plugin->name, "ivf") ||
|
||||||
!strcmp (in_plugin->name, "brstm") ||
|
!strcmp (in_plugin->name, "brstm") ||
|
||||||
!strcmp (in_plugin->name, "bfstm"))
|
!strcmp (in_plugin->name, "bfstm") || !strcmp (in_plugin->name, "gif"))
|
||||||
rank = GST_RANK_MARGINAL;
|
rank = GST_RANK_MARGINAL;
|
||||||
else {
|
else {
|
||||||
GST_DEBUG ("ignoring %s", in_plugin->name);
|
GST_DEBUG ("ignoring %s", in_plugin->name);
|
||||||
|
|
|
@ -2328,8 +2328,7 @@ gst_ffmpegviddec_register (GstPlugin * plugin)
|
||||||
/* MP1 : Use MP3 for decoding */
|
/* MP1 : Use MP3 for decoding */
|
||||||
/* MP2 : Use MP3 for decoding */
|
/* MP2 : Use MP3 for decoding */
|
||||||
/* Theora: Use libtheora based theoradec */
|
/* Theora: Use libtheora based theoradec */
|
||||||
if (!strcmp (in_plugin->name, "gif") ||
|
if (!strcmp (in_plugin->name, "theora") ||
|
||||||
!strcmp (in_plugin->name, "theora") ||
|
|
||||||
!strcmp (in_plugin->name, "mpeg1video") ||
|
!strcmp (in_plugin->name, "mpeg1video") ||
|
||||||
strstr (in_plugin->name, "crystalhd") != NULL ||
|
strstr (in_plugin->name, "crystalhd") != NULL ||
|
||||||
!strcmp (in_plugin->name, "ass") ||
|
!strcmp (in_plugin->name, "ass") ||
|
||||||
|
|
Loading…
Reference in a new issue