mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 09:42:19 +00:00
- disable svq3 as it still crashes and spider tries to use it.
Original commit message from CVS: - disable svq3 as it still crashes and spider tries to use it. - copy buffers if necessary before sending them for decode in SVQ1 case. The decoder writes to the data.
This commit is contained in:
parent
579ca39de7
commit
2d2624fe49
1 changed files with 8 additions and 0 deletions
|
@ -344,6 +344,13 @@ gst_ffmpegdec_chain (GstPad *pad,
|
||||||
|
|
||||||
switch (oclass->in_plugin->type) {
|
switch (oclass->in_plugin->type) {
|
||||||
case CODEC_TYPE_VIDEO:
|
case CODEC_TYPE_VIDEO:
|
||||||
|
/* workaround:
|
||||||
|
libavcodec/svq1.c:svq1_decode_frame writes to the given buffer */
|
||||||
|
if (oclass->in_plugin->id == CODEC_ID_SVQ1) {
|
||||||
|
inbuf = gst_buffer_copy_on_write(inbuf);
|
||||||
|
data = GST_BUFFER_DATA (inbuf);
|
||||||
|
size = GST_BUFFER_SIZE (inbuf);
|
||||||
|
}
|
||||||
len = avcodec_decode_video (ffmpegdec->context,
|
len = avcodec_decode_video (ffmpegdec->context,
|
||||||
ffmpegdec->picture,
|
ffmpegdec->picture,
|
||||||
&have_data,
|
&have_data,
|
||||||
|
@ -473,6 +480,7 @@ gst_ffmpegdec_register (GstPlugin *plugin)
|
||||||
|
|
||||||
/* no quasi-codecs, please */
|
/* no quasi-codecs, please */
|
||||||
if (in_plugin->id == CODEC_ID_RAWVIDEO ||
|
if (in_plugin->id == CODEC_ID_RAWVIDEO ||
|
||||||
|
in_plugin->id == CODEC_ID_SVQ3 || /* segfaults */
|
||||||
(in_plugin->id >= CODEC_ID_PCM_S16LE &&
|
(in_plugin->id >= CODEC_ID_PCM_S16LE &&
|
||||||
in_plugin->id <= CODEC_ID_PCM_ALAW)) {
|
in_plugin->id <= CODEC_ID_PCM_ALAW)) {
|
||||||
goto next;
|
goto next;
|
||||||
|
|
Loading…
Reference in a new issue