diff options
Diffstat (limited to 'ffmpeg_backend.cpp')
-rw-r--r-- | ffmpeg_backend.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ffmpeg_backend.cpp b/ffmpeg_backend.cpp index bece065..b3d5be8 100644 --- a/ffmpeg_backend.cpp +++ b/ffmpeg_backend.cpp @@ -114,7 +114,7 @@ void AV_Init(source *Source, layer_bitmap_info *BitmapInfo, memory *Memory) Assert(0); } - for (int i = 0; i < AV->FileFormatContext->nb_streams; i++) + for (uint32 i = 0; i < AV->FileFormatContext->nb_streams; i++) { AVCodecParameters *LocalCodecParameters = NULL; LocalCodecParameters = AV->FileFormatContext->streams[i]->codecpar; @@ -223,9 +223,6 @@ cached_bitmap * AV_LoadVideoFrame(source *Source, layer_bitmap_info *BitmapInfo, } Assert(Source->Info.AvgPTSPerFrame); - int p = 0; - int i = 0; - int32 FrameToSeek = TimelineFrame - BitmapInfo->FrameOffset; if (*CurrentlyRenderedFrame == FrameToSeek || FrameToSeek < 0) return 0; |