aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/media/UMediaCore_FFmpeg.pas7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/media/UMediaCore_FFmpeg.pas b/src/media/UMediaCore_FFmpeg.pas
index d2fe9185..1478cc2a 100644
--- a/src/media/UMediaCore_FFmpeg.pas
+++ b/src/media/UMediaCore_FFmpeg.pas
@@ -351,18 +351,15 @@ end;
function TMediaCore_FFmpeg.ConvertFFmpegToAudioFormat(FFmpegFormat: TAVSampleFormat; out Format: TAudioSampleFormat): boolean;
begin
+ Result := true;
case FFmpegFormat of
AV_SAMPLE_FMT_U8: Format := asfU8;
AV_SAMPLE_FMT_S16: Format := asfS16;
AV_SAMPLE_FMT_S32: Format := asfS32;
AV_SAMPLE_FMT_FLT: Format := asfFloat;
AV_SAMPLE_FMT_DBL: Format := asfDouble;
- else begin
- Result := false;
- Exit;
- end;
+ else Result := false;
end;
- Result := true;
end;