[Bug 789193] Video decoding fails with ffmpeg 3.4

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Nov 5 14:10:17 UTC 2017


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

--- Comment #8 from Jana Saout <jana at saout.de> ---
Created attachment 363014
  --> https://bugzilla.gnome.org/attachment.cgi?id=363014&action=edit
quick & dirty hack to use new decoding API for viddec

Not meant as "fix" but as temporary workaround for people bothered by this
issue:

This quick & dirty hack replaces the deprecated call to avcodec_decode_video2
by calls to avcodec_send_packet and avcodec_receive_frame.

Note that this is hack is really ugly, because the API really isn't meant to be
used this way (the assumption is that each call to avcodec_send_packet will
produce at most one new frame) and also the error handling and probably other
cases are not handled correctly.

However, MP4 videos seem to play fine for me.

-- 
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