Merge branch 'v0.15.x'
Conflicts: src/decoder/ffmpeg_plugin.c
This commit is contained in:
@@ -311,10 +311,6 @@ ffmpeg_decode_internal(struct ffmpeg_context *ctx)
|
||||
|
||||
total_time = 0;
|
||||
|
||||
if (codec_context->channels > 2) {
|
||||
codec_context->channels = 2;
|
||||
}
|
||||
|
||||
if (!audio_format_init_checked(&audio_format,
|
||||
codec_context->sample_rate,
|
||||
ffmpeg_sample_format(codec_context),
|
||||
|
@@ -74,7 +74,7 @@ format_samples_int(int bytes_per_sample, void *buffer, uint32_t count)
|
||||
|
||||
switch (bytes_per_sample) {
|
||||
case 1: {
|
||||
uchar *dst = buffer;
|
||||
int8_t *dst = buffer;
|
||||
/*
|
||||
* The asserts like the following one are because we do the
|
||||
* formatting of samples within a single buffer. The size
|
||||
|
Reference in New Issue
Block a user