[vlc-commits] demux: avi: use video_format_setup to set bpp

Francois Cartegnie git at videolan.org
Sun Oct 20 15:29:48 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Oct 20 15:26:53 2019 +0200| [588ef618c1b666ceff723536119a2a7379b875d0] | committer: Francois Cartegnie

demux: avi: use video_format_setup to set bpp

refs #22916

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=588ef618c1b666ceff723536119a2a7379b875d0
---

 modules/demux/avi/bitmapinfoheader.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/demux/avi/bitmapinfoheader.h b/modules/demux/avi/bitmapinfoheader.h
index 1694e67b68..3208a38d7b 100644
--- a/modules/demux/avi/bitmapinfoheader.h
+++ b/modules/demux/avi/bitmapinfoheader.h
@@ -199,11 +199,10 @@ static inline int ParseBitmapInfoHeader( VLC_BITMAPINFOHEADER *p_bih, size_t i_b
         SetBitmapRGBMasks( fmt->i_codec, fmt );
     }
 
-    fmt->video.i_visible_width =
-    fmt->video.i_width  = p_bih->biWidth;
-    fmt->video.i_visible_height =
-    fmt->video.i_height = p_bih->biHeight;
-    fmt->video.i_bits_per_pixel = p_bih->biBitCount;
+    video_format_Setup( &fmt->video, fmt->i_codec,
+                        p_bih->biWidth, p_bih->biHeight,
+                        p_bih->biWidth, p_bih->biHeight,
+                        fmt->video.i_sar_num, fmt->video.i_sar_den );
 
     /* Uncompressed Bitmap or YUV, YUV being always top to bottom whatever
      * height sign is, and compressed must also not use flip, so positive



More information about the vlc-commits mailing list