diff options
Diffstat (limited to 'ffmpeg_backend.cpp')
-rw-r--r-- | ffmpeg_backend.cpp | 1 |
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; |