View | Details | Raw Unified | Return to bug 270223 | Differences between
and this patch

Collapse All | Expand All

(-)src/mediaenc_ffmpeg.cpp (+2 lines)
Lines 330-336 Link Here
330
		return false;
330
		return false;
331
	for (int i = 0; i < c->channels; i++) {
331
	for (int i = 0; i < c->channels; i++) {
332
		uint16_t *samples = (uint16_t*)m_audioFrame->data[i];
332
		uint16_t *samples = (uint16_t*)m_audioFrame->data[i];
333
		if (samples) {
333
		memset(samples, 0, c->frame_size * av_get_bytes_per_sample(c->sample_fmt));
334
		memset(samples, 0, c->frame_size * av_get_bytes_per_sample(c->sample_fmt));
335
		}
334
	}
336
	}
335
337
336
	return true;
338
	return true;

Return to bug 270223