summaryrefslogtreecommitdiff
path: root/ffmpeg_backend.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-15 23:03:30 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-15 23:03:30 -0400
commit04b7ccfd87d802e6b9a22b86c8d098979164b8ba (patch)
treeb155fbfb7d4b494bae79073161dfeb36dc8edc49 /ffmpeg_backend.cpp
parent67898c6505c9180b5a5a31457f11d29b41fa91ba (diff)
undo started
Diffstat (limited to 'ffmpeg_backend.cpp')
-rw-r--r--ffmpeg_backend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg_backend.cpp b/ffmpeg_backend.cpp
index b3d5be8..f437285 100644
--- a/ffmpeg_backend.cpp
+++ b/ffmpeg_backend.cpp
@@ -173,6 +173,7 @@ void AV_Init(source *Source, layer_bitmap_info *BitmapInfo, memory *Memory)
fprintf(stderr, "Libav error: (%s)\n", av_err2str(err));
}
+ Source->Info.BytesPerPixel = 4;
Source->Info.FPS = (real32)AV->VideoStream->r_frame_rate.num / AV->VideoStream->r_frame_rate.den;
Source->Info.Width = AV->VideoCodecContext->width;
Source->Info.Height = AV->VideoCodecContext->height;