Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b02027c7
Commit
b02027c7
authored
Apr 03, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dvbsubdec: Replace fprintf(stderr) by av_log()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
c901ae94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dvbsubdec.c
libavcodec/dvbsubdec.c
+4
-4
No files found.
libavcodec/dvbsubdec.c
View file @
b02027c7
...
...
@@ -1332,7 +1332,7 @@ static int dvbsub_parse_page_segment(AVCodecContext *avctx,
#ifdef DEBUG
static
void
png_save
(
const
char
*
filename
,
uint32_t
*
bitmap
,
int
w
,
int
h
)
static
void
png_save
(
DVBSubContext
*
ctx
,
const
char
*
filename
,
uint32_t
*
bitmap
,
int
w
,
int
h
)
{
int
x
,
y
,
v
;
FILE
*
f
;
...
...
@@ -1382,13 +1382,13 @@ static void png_save(const char *filename, uint32_t *bitmap, int w, int h)
snprintf
(
command
,
sizeof
(
command
),
"pnmtopng -alpha %s %s > %s.png 2> /dev/null"
,
fname2
,
fname
,
filename
);
if
(
system
(
command
)
!=
0
)
{
fprintf
(
stderr
,
"Error running pnmtopng
\n
"
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error running pnmtopng
\n
"
);
return
;
}
snprintf
(
command
,
sizeof
(
command
),
"rm %s %s"
,
fname
,
fname2
);
if
(
system
(
command
)
!=
0
)
{
fprintf
(
stderr
,
"Error removing %s and %s
\n
"
,
fname
,
fname2
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error removing %s and %s
\n
"
,
fname
,
fname2
);
return
;
}
}
...
...
@@ -1486,7 +1486,7 @@ static int save_display_set(DVBSubContext *ctx)
snprintf
(
filename
,
sizeof
(
filename
),
"dvbs.%d"
,
fileno_index
);
png_save
(
filename
,
pbuf
,
width
,
height
);
png_save
(
ctx
,
filename
,
pbuf
,
width
,
height
);
av_freep
(
&
pbuf
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment