1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-21 15:27:00 +00:00

bitmap_packer: use printf() for fatal message

This is printed right before abort(), which is bad style anyway.
Converting this to mp_msg will help nobody, and passing through a mp_log
is effort.
This commit is contained in:
wm4 2013-12-21 18:12:40 +01:00
parent 70af7ab8e5
commit 823bf0029d

View File

@ -21,12 +21,12 @@
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <libavutil/common.h>
#include "talloc.h"
#include "bitmap_packer.h"
#include "common/msg.h"
#include "common/common.h"
#include "sub/dec_sub.h"
#include "video/memcpy_pic.h"
@ -141,7 +141,7 @@ int packer_pack(struct bitmap_packer *packer)
if (in[i].x <= packer->padding || in[i].y <= packer->padding)
in[i] = (struct pos){0, 0};
if (in[i].x < 0 || in [i].x > 65535 || in[i].y < 0 || in[i].y > 65535) {
mp_msg(MSGT_VO, MSGL_FATAL, "Invalid OSD / subtitle bitmap size\n");
fprintf(stderr, "Invalid OSD / subtitle bitmap size\n");
abort();
}
xmax = FFMAX(xmax, in[i].x);