diff options
author | wm4 <wm4@nowhere> | 2013-12-21 18:12:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 20:50:11 +0100 |
commit | 823bf0029de2e4197129eb7cf714643e0d5ce000 (patch) | |
tree | f9d606cee48656012010a899bde8d9e939369129 /video/out/bitmap_packer.c | |
parent | 70af7ab8e55e117e62303b407f2886f29b5500d1 (diff) | |
download | mpv-823bf0029de2e4197129eb7cf714643e0d5ce000.tar.bz2 mpv-823bf0029de2e4197129eb7cf714643e0d5ce000.tar.xz |
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.
Diffstat (limited to 'video/out/bitmap_packer.c')
-rw-r--r-- | video/out/bitmap_packer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/bitmap_packer.c b/video/out/bitmap_packer.c index 35e4f4c176..78af8e648c 100644 --- a/video/out/bitmap_packer.c +++ b/video/out/bitmap_packer.c @@ -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); |