aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2013-12-15 17:16:46 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2013-12-15 17:16:46 +0000
commit28370276a7330304f67953bb8940164ad537df5c (patch)
tree8e271ecb6657c9a3f48d67d7d9f71ea0ae19505d
parent1024bab19b989a6ad549e835cfb1186068904fcf (diff)
downloadusdx-28370276a7330304f67953bb8940164ad537df5c.tar.gz
usdx-28370276a7330304f67953bb8940164ad537df5c.tar.xz
usdx-28370276a7330304f67953bb8940164ad537df5c.zip
minor code optimization
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3027 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-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;