Opened 16 years ago
Closed 16 years ago
#4577 closed defect (fixed)
Segfault playing DVB Radio recording
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.21 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
A 5 minute DVB-S radio recording (to get the long range weather forecast!) causes a segfault when played. The complete file (30M) can be downloaded from http://gilks.ath.cx/~g8ecj/dvb-radio.mpg
Using r15728 on x86
Playback log and backtrace attached.
Attachments (2)
Change History (7)
comment:1 Changed 16 years ago by
I just noticed this while I was testing something else. When I looked at this it seemed that the value of the size of the buffer pointed to by frame->buf was smaller than frame->size so memcpy gave a segfault when it tried to write to the buffer. I tried using frame->width*frame->height*frame->bpp/8 as the size and that gave me a value that worked. I couldn't see where the buffer was allocated or what its correct size should be.
David.
comment:2 Changed 16 years ago by
Milestone: | unknown → 0.21 |
---|---|
Owner: | changed from Isaac Richards to danielk |
Status: | new → assigned |
comment:3 Changed 16 years ago by
comment:4 Changed 16 years ago by
(In [15757]) Refs #4577. Safely copies video frame for DVB radio.
The plain memcpy we were using only works if the Y U & V planes are all stored in one contiguous buffer. With drivers like the VIA drivers, which can be configured to use separate DMA buffers for the planes, this will lead to a segfault.
playback log