[FFmpeg-devel] [PATCH v4] Fix mistake with repeating values in first and second channels
Ludmila Glinskih
lglinskih at gmail.com
Mon Apr 20 09:43:05 CEST 2015
Oooops, this was meant to be in the last thread
=)
On Mon, Apr 20, 2015 at 10:34 AM, Ludmila Glinskih <lglinskih at gmail.com> wrote:
> Signed-off-by: Ludmila Glinskih <lglinskih at gmail.com>
> ---
> libavcodec/api-flac-test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/api-flac-test.c b/libavcodec/api-flac-test.c
> index b036385..38b2613 100644
> --- a/libavcodec/api-flac-test.c
> +++ b/libavcodec/api-flac-test.c
> @@ -44,7 +44,7 @@ static int generate_raw_frame(uint16_t *frame_data, int i, int sample_rate,
> {
> frame_data[channels * j] = 10000 * ((j / 10 * i) % 2);
> for (k = 1; k < channels; k++)
> - frame_data[channels * j + k] = frame_data[channels * j] * k;
> + frame_data[channels * j + k] = frame_data[channels * j] * (k + 1);
> }
> return 0;
> }
> --
> 1.9.1
>
More information about the ffmpeg-devel
mailing list