Opened 20 years ago
Closed 20 years ago
Last modified 20 years ago
#2216 closed defect (fixed)
Bug in bswap_dbl() corrupts data causing incorrect fps and aspect ratio fields in NUV header.
| Reported by: | Owned by: | Nigel | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.20 |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | bswap endian double |
| Cc: | Ticket locked: | no |
Description
bswap_dbl() tries to swap two variables without saving one to a temporary variable, corrupting the value of the swapped double. This bug only occurs on big endian backends that need to use bswap_dbl. This bug causes several side effects: playback of the video works correctly but often emits lots of "NVP: Prebuffer wait timed out 10 times." messages, OSD messages will not fade away automatically, and nuvexport cannot export the files. I have attached a patch that fixes this bug.
Attachments (1)
Change History (5)
by , 20 years ago
| Attachment: | bwap_dbl_fix.diff.txt added |
|---|
comment:1 by , 20 years ago
| Owner: | changed from to |
|---|
comment:2 by , 20 years ago
| Milestone: | → 0.20 |
|---|---|
| Status: | new → assigned |
| Version: | → head |
Hmmm. One of the oldest programming mistakes in the book. Where the heck did I copy/paste that code from?

fixes a bug in bswap_dbl