[MPlayer-cvslog] r36605 - trunk/libvo/vo_bl.c
reimar
subversion at mplayerhq.hu
Sat Jan 18 14:46:54 CET 2014
Author: reimar
Date: Sat Jan 18 14:46:54 2014
New Revision: 36605
Log:
vo_bl: minor simplification of size reinit case.
Modified:
trunk/libvo/vo_bl.c
Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c Sat Jan 18 14:43:10 2014 (r36604)
+++ trunk/libvo/vo_bl.c Sat Jan 18 14:46:54 2014 (r36605)
@@ -234,20 +234,15 @@ static int config(uint32_t width, uint32
int reset_height = bl->height < 0;
/* adapt size of Blinkenlights UDP stream to size of movie */
- if (reset_width || reset_height) {
- if (reset_width) { /* use width of movie */
- bl->width = width;
- }
- if (reset_height) { /* use height of movie */
- bl->height = height;
- }
+ if (reset_width) bl->width = width; /* use width of movie */
+ if (reset_height) bl->height = height; /* use height of movie */
+
/* check for maximum size of UDP packet */
if (12 + bl->width*bl->height*bl->channels > 65507) {
mp_msg(MSGT_VO, MSGL_ERR, "bl: %dx%d-%d does not fit into an UDP packet\n",
bl->width, bl->height, bl->channels);
goto err_out;
}
- }
/* resize or allocate frame and tmp buffers */
bl_size = 12 + bl->width*bl->height*bl->channels;
More information about the MPlayer-cvslog
mailing list