¼Ö°³ (Çö½Çȯ)
|
|
À¯´ÏÄڵ带 Áö¿øÇÏ´Â Delphi 2009 ¶Ç´Â ÀÌÈÄ ¹öÀüÀÇ µ¨ÆÄÀ̸¦ »ç¿ëÇÒ °æ¿ì¸¦ ´ëºñÇؼ VCL_ffMPEG.pasÀÇ Function OpenÀÇ ½ÃÀۺδ ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ÀÌ ÇÊ¿äÇÕ´Ï´Ù.
Function TffMPEG.Open ( FileName : String ) : Boolean;
Var
channel_layout : Int64;
stop : boolean;
{$IFDEF UNICODE}
ansiName: AnsiString; // **** Added
{$ENDIF}
begin
Result := False;
If Not(FileExists(FileName)) then Exit;
// Open File & Alloc Context
{$IFDEF UNICODE}
ansiName := FileName; // **** Added
If avformat_open_input(@fMPEG.ctx_fmt,PAnsiChar(ansiName), nil, nil) < 0 then // **** Added
{$ELSE}
If avformat_open_input(@fMPEG.ctx_fmt,PAnsiChar(FileName), nil, nil) < 0 then
{$ENDIF}
begin
Event_Status(msError, Format('Could not open source file %s', [FileName]));
Exit;
end;
2017-01-28 ¿ÀÈÄ 12:02:28
|
|