Opened 13 years ago
Closed 13 years ago
Last modified 13 years ago
#11411 closed Patch - Bug Fix (fixed)
fix mythcommflag segfaults in mpeg2_fast_decode_block_non_intra
Reported by: | Owned by: | Stuart Auchterlonie | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - Mythcommflag | Version: | 0.26-fixes |
Severity: | high | Keywords: | |
Cc: | Ticket locked: | no |
Description
Patch is a pull request: https://github.com/MythTV/mythtv/pull/37
The segfault in ticket #10222 is still causing problems for me.
The problem in that issue was that AvFormatDecoder was adding the CODEC_FLAG2_FAST flag. This causes unsafe functions to be used, causing a segfault. The proper way to fix this would probably be to figure out how to test for the "experimental speedups" flag, however I don't know the codebase well enough for this.
I'm not sure that it is worth setting it up that way however, as I tested how this would affect the speed of mythcommflag on one of my recordings. The results (command used: time mythcommflag -f /path/to/file.mpg):
Before removing flag:
real 2m13.123s user 2m16.713s sys 0m3.502s
After removing flag:
real 2m13.021s user 2m15.446s sys 0m3.758s
In aaa5255f5bdf90233846e4c5c17e5d61fd7d500a/mythtv: