[Bug 696770] Memory leak when processing h.264 field pictures

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jun 4 05:02:33 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=696770
  GStreamer | gst-libav | 1.0.5

--- Comment #5 from sreerenj <bsreerenj at gmail.com> 2013-06-04 12:02:23 UTC ---
For the field encoded pictures (interlaced stream with individual field encoded
frames), the get_buffer() method of libav will get invoked only for one field
(either top or bottom). Which means the decoder is using the same buffer for
rendering both top and bottom field. If I understood correctly we are supposed
to call _finish_frame() or drop_frame() for all the frames that reaches in
handle_frame().Here we are not calling any of them for alternate fields. 

To fix this mem leak:
1) either we need to drop the alternate fields
2) or set the DECODE_ONLY flag to alternate fields and invoke _finish_frame.

I will attach a quick fix.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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