mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
ffmpeg: fix an unprotected debug print
This commit is contained in:
parent
2b0a2ea6df
commit
6364485b49
@ -132,8 +132,10 @@ FfmpegAudioCursor(FfmpegAudio *src) :
|
||||
// Set up the resample context if necessary.
|
||||
if (_audio_ctx->sample_fmt != AV_SAMPLE_FMT_S16) {
|
||||
#ifdef HAVE_SWRESAMPLE
|
||||
ffmpeg_cat.debug()
|
||||
<< "Codec does not use signed 16-bit sample format. Setting up swresample context.\n";
|
||||
if (ffmpeg_cat.is_debug()) {
|
||||
ffmpeg_cat.debug()
|
||||
<< "Codec does not use signed 16-bit sample format. Setting up swresample context.\n";
|
||||
}
|
||||
|
||||
_resample_ctx = swr_alloc();
|
||||
av_opt_set_int(_resample_ctx, "in_channel_count", _audio_channels, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user