Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
22a6d48b
Commit
22a6d48b
authored
Mar 11, 2015
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Print the avfilter errors
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
342fc46c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
avconv.c
avconv.c
+13
-5
No files found.
avconv.c
View file @
22a6d48b
...
...
@@ -1292,8 +1292,12 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
decoded_frame
->
width
,
decoded_frame
->
height
,
av_get_pix_fmt_name
(
decoded_frame
->
format
));
ret
=
poll_filters
();
if
(
ret
<
0
&&
(
ret
!=
AVERROR_EOF
&&
ret
!=
AVERROR
(
EAGAIN
)))
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error while filtering.
\n
"
);
if
(
ret
<
0
&&
(
ret
!=
AVERROR_EOF
&&
ret
!=
AVERROR
(
EAGAIN
)))
{
char
errbuf
[
128
];
av_strerror
(
ret
,
errbuf
,
sizeof
(
errbuf
));
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error while filtering: %s
\n
"
,
errbuf
);
}
ist
->
resample_width
=
decoded_frame
->
width
;
ist
->
resample_height
=
decoded_frame
->
height
;
...
...
@@ -2514,11 +2518,15 @@ static int transcode(void)
ret
=
poll_filters
();
if
(
ret
<
0
)
{
if
(
ret
==
AVERROR_EOF
||
ret
==
AVERROR
(
EAGAIN
))
if
(
ret
==
AVERROR_EOF
||
ret
==
AVERROR
(
EAGAIN
))
{
continue
;
}
else
{
char
errbuf
[
128
];
av_strerror
(
ret
,
errbuf
,
sizeof
(
errbuf
));
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error while filtering.
\n
"
);
break
;
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error while filtering: %s
\n
"
,
errbuf
);
break
;
}
}
/* dump report by using the output first video and audio streams */
...
...
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