[FFmpeg-devel] [PATCH] ffmpeg: show error message in case of av_buffersrc_add_frame_flags() failure
Stefano Sabatini
stefasab at gmail.com
Sun Apr 14 20:34:48 CEST 2013
On date Saturday 2013-04-13 16:07:19 +0200, Michael Niedermayer encoded:
> 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
Applied, thanks.
--
FFmpeg = Fanciful and Frightening Mean Perfectionist Exxagerate God
More information about the ffmpeg-devel
mailing list