[mythtv-commits] Ticket #2972: Enhance Software encoder to support other codecs and container formats.
MythTV
mythtv at cvs.mythtv.org
Wed Apr 8 01:41:39 UTC 2009
#2972: Enhance Software encoder to support other codecs and container formats.
----------------------+-----------------------------------------------------
Reporter: cpinkham | Owner: cpinkham
Type: task | Status: assigned
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: low | Resolution:
Mlocked: 0 |
----------------------+-----------------------------------------------------
Comment(by cpinkham):
(In [20321]) Initialize (URLContext*)->priv_data in AVF_Open() in case one
of the other
AVF_* functions gets called before we can allocate a AVFRingBuffer and
assign it. This can happen if we use libavformat/aviobuf.c's url_fopen()
which calls avio.c's url_open() which calls url_open_protocol().
The URLContext isn't allocated until url_open_protocol() gets called, but
url_open_protocol immediately tries to do a url_seek() (aka AVF_Seek())
which depend(s|ed) on priv_data already being pointed to an AVFRingBuffer.
The bug didn't affect current usage, but showed up as a segfault when
writing files using libavformat via our RingBuffer class.
References #2972.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2972#comment:18>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list