]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8905 doing -1 here prevents the crash, its something to do with the last row in...
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 5 Mar 2016 01:54:56 +0000 (19:54 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 5 Mar 2016 01:54:56 +0000 (19:54 -0600)
src/mod/formats/mod_local_stream/mod_local_stream.c

index b96798416a1f47d587e5b9ec648e037ef4cf2a49..b1c75e87ee3016ca8c7abf0fd1b6d59f80d406ae 100644 (file)
@@ -1078,9 +1078,9 @@ static switch_status_t local_stream_file_read_video(switch_file_handle_t *handle
                }
 
                if (context->source->logo_opacity > 0 && context->source->logo_opacity < 100) {
-                       switch_img_overlay(frame->img, context->source->logo_img, x, y, context->source->logo_opacity);
+                       switch_img_patch(frame->img, context->source->logo_img, x, y-1, context->source->logo_opacity);
                } else {
-                       switch_img_patch(frame->img, context->source->logo_img, x, y);
+                       switch_img_patch(frame->img, context->source->logo_img, x, y-1);
                }
        }