[Bug 796900] avdec: loses the last (num_cores + 1) frames

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 31 17:00:17 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796900

Thibault Saunier <tsaunier at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #373230|reviewed                    |accepted-commit_now
             status|                            |

--- Comment #6 from Thibault Saunier <tsaunier at gnome.org> ---
Review of attachment 373230:
 --> (https://bugzilla.gnome.org/review?bug=796900&attachment=373230)

(In reply to Mathieu Duponchelle from comment #5)
> (In reply to Thibault Saunier from comment #4)
> > Review of attachment 373230 [details] [review] [review]:
> > 
> > ::: ext/libav/gstavviddec.c
> > @@ +1723,3 @@
> >        got_frame = gst_ffmpegviddec_frame (ffmpegdec, NULL, &ret);
> >      } while (got_frame && ret == GST_FLOW_OK);
> > +    avcodec_flush_buffers (ffmpegdec->context);
> > 
> > Why do you flush here now?
> 
> Because that was missing, the call to flush_buffers makes it so the decoder
> is ready to decode again.

Indeed, makes sense, and it was there for the audio decoder.

> > @@ +1731,3 @@
> > +send_packet_failed:
> > +  GST_WARNING_OBJECT (ffmpegdec, "send packet failed, could not drain
> > decoder");
> > +  goto done;
> > 
> > Shouldn't it report an error here indeed?
> 
> 
> No, as you know we don't want to error out at the first problem in the
> decoders / encoders, it should be translated to GST_AUDIO_DECODER_ERROR
> along with the rest of the error handling code, but that's a separate issue.

Right, got it.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list