Opened 19 years ago
Closed 19 years ago
#1855 closed defect (invalid)
mythdvd and via xvmc segfaults on prev chapter when in first chapter
Reported by: | Owned by: | skamithi | |
---|---|---|---|
Priority: | minor | Milestone: | 0.20 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Using previous chapter when there isn't one segfaults under via xvmc, doesn't segfault if not xvmc.
Attached patch stops segfault and seems ok - but I don't know the code well enough (don't know it at all actually) to know whether this will create a memory leak/other problems.
The problem is in the line ca 2750 in libavcodec/mpeg12.c
s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_MPEG2;
because in the segv circumstances current_picture_ptr is 0x0
Attachments (1)
Change History (5)
by , 19 years ago
Attachment: | dvdprevchaptersegv.diff added |
---|
comment:1 by , 19 years ago
Owner: | changed from | to
---|
comment:2 by , 19 years ago
Component: | mythdvd → mythtv |
---|
comment:3 by , 19 years ago
Status: | new → assigned |
---|
in the slice_end() function it checks to see if s->current_picture_ptr is null.
if its null by the time it gets to the part mentioned, then another thread may have cleared the structure. need the gdb dump to begin to figure it out.
sent creator of the ticket an email asking for the gdb dump, if the issue is still reproducible.
comment:4 by , 19 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
closing this ticket. can't reproduce. need gdb dump.
Patch for mythdvd prevchapter segv under xvmc