VirtualBox

Ignore:
Timestamp:
Aug 11, 2009 4:07:59 PM (15 years ago)
Author:
vboxsync
Message:

Main: fix burns with ffmpeg enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp

    r19844 r22176  
    654654    mpStream = av_new_stream(mpFormatContext, 0);
    655655    AssertReturn(mpStream != 0, E_UNEXPECTED);
    656     strncpy(mpFormatContext->filename, com::Utf8Str(mFileName),
     656    strncpy(mpFormatContext->filename, com::Utf8Str(mFileName).c_str(),
    657657            sizeof(mpFormatContext->filename));
    658658    return S_OK;
     
    671671{
    672672    Assert(mpFormatContext != 0);
    673     AVOutputFormat *pOutFormat = guess_format(0, com::Utf8Str(mFileName),
     673    AVOutputFormat *pOutFormat = guess_format(0, com::Utf8Str(mFileName).c_str(),
    674674                                              0);
    675675#ifdef VBOX_SHOW_AVAILABLE_FORMATS
     
    789789    Assert(mpFormatContext);
    790790    Assert(mpFormatContext->oformat);
    791     strcpy(szFileName, com::Utf8Str(mFileName));
     791    strcpy(szFileName, com::Utf8Str(mFileName).c_str());
    792792    int rcUrlFopen = url_fopen(&mpFormatContext->pb,
    793793                               szFileName, URL_WRONLY);
     
    975975    /* Work out the new file name - for some reason, we can't use
    976976       the com::Utf8Str() directly, but have to copy it */
    977     strcpy(oldName, com::Utf8Str(mFileName));
     977    strcpy(oldName, com::Utf8Str(mFileName).c_str());
    978978    int baseLen = strrchr(oldName, '.') - oldName;
    979979    if (baseLen == 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette