mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst/audioconvert/gstchannelmix.h: include missing header file
Original commit message from CVS: * gst/audioconvert/gstchannelmix.h: include missing header file * gst/audioconvert/gstchannelmix.c: (gst_audio_convert_fill_compatible): use same sign for both channels when converting to/from compatible channel. Previously used different signs made the signals cancel each other out and appear like silence. (fixes #167269)
This commit is contained in:
parent
c89562b61a
commit
f9cf10c748
3 changed files with 13 additions and 2 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2005-02-13 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/audioconvert/gstchannelmix.h:
|
||||
include missing header file
|
||||
* gst/audioconvert/gstchannelmix.c:
|
||||
(gst_audio_convert_fill_compatible):
|
||||
use same sign for both channels when converting to/from compatible
|
||||
channel. Previously used different signs made the signals cancel
|
||||
each other out and appear like silence. (fixes #167269)
|
||||
|
||||
2005-02-12 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/ffmpegcolorspace/avcodec.h:
|
||||
|
|
|
@ -140,7 +140,7 @@ gst_audio_convert_fill_compatible (GstAudioConvert * this)
|
|||
}
|
||||
|
||||
if (pos1_0 != -1 && pos1_1 != -1 && pos2_0 != -1) {
|
||||
this->matrix[pos1_0][pos2_0] = -1.0;
|
||||
this->matrix[pos1_0][pos2_0] = 1.0;
|
||||
this->matrix[pos1_1][pos2_0] = 1.0;
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ gst_audio_convert_fill_compatible (GstAudioConvert * this)
|
|||
}
|
||||
|
||||
if (pos1_0 != -1 && pos1_1 != -1 && pos2_0 != -1) {
|
||||
this->matrix[pos2_0][pos1_0] = -1.0;
|
||||
this->matrix[pos2_0][pos1_0] = 1.0;
|
||||
this->matrix[pos2_0][pos1_1] = 1.0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#define __GST_CHANNEL_MIX_H__
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/audio/multichannel.h>
|
||||
|
||||
#define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type())
|
||||
#define GST_AUDIO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_CONVERT,GstAudioConvert))
|
||||
|
|
Loading…
Reference in a new issue