[FFmpeg-devel] [PATCH] ffmpeg: show error message in case of av_buffersrc_add_frame_flags() failure
Michael Niedermayer
michaelni at gmx.at
Sat Apr 13 16:07:19 CEST 2013
On Sat, Apr 13, 2013 at 02:04:02PM +0200, Stefano Sabatini wrote:
> ---
> ffmpeg.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 3f26249..ea41645 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -1715,12 +1715,12 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
> break;
> } else
> f = decoded_frame;
> - if(av_buffersrc_add_frame_flags(ist->filters[i]->filter, f,
> - AV_BUFFERSRC_FLAG_PUSH)<0) {
> - av_log(NULL, AV_LOG_FATAL, "Failed to inject frame into filter network\n");
> + ret = av_buffersrc_add_frame_flags(ist->filters[i]->filter, f, AV_BUFFERSRC_FLAG_PUSH);
> + if (ret < 0) {
> + av_log(NULL, AV_LOG_FATAL,
> + "Failed to inject frame into filter network: %s\n", av_err2str(ret));
should be ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130413/10d90877/attachment.asc>
More information about the ffmpeg-devel
mailing list