diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-10-06 14:30:48 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-10-06 14:30:48 -0400 |
commit | 0b0aa3b06fac0bcdeb31d5e2211d1ba149531692 (patch) | |
tree | 91f0d9689151b7fb985de50b2c8b12ccd7a65440 /ffmpeg_backend.cpp | |
parent | a4c1e537b0cb2540535357d880e46f63b38c134f (diff) |
GL renderer preparation
Diffstat (limited to 'ffmpeg_backend.cpp')
-rw-r--r-- | ffmpeg_backend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg_backend.cpp b/ffmpeg_backend.cpp index 34abf35..b986d7a 100644 --- a/ffmpeg_backend.cpp +++ b/ffmpeg_backend.cpp @@ -125,7 +125,8 @@ void AV_Init(block_source *Source, av_info *AV, memory *Memory) // The two calls below theoretically shouldn't fail since we already tested them in IsFileSupported. AV->FileFormatContext = avformat_alloc_context(); - err = avformat_open_input(&AV->FileFormatContext, Source->Path, NULL, NULL);; + char *Path = (char *)Memory_Block_AddressAtIndex(Memory, F_Strings, Source->Block_String_Index); + err = avformat_open_input(&AV->FileFormatContext, Path, NULL, NULL);; if (err < 0) { fprintf(stderr, "Libav error: (%s)\n", av_err2str(err)); Assert(0); |