-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i build picam, i got this error. #144
Comments
After add -latomic to LDFLAGS, i can build picam. But when i run the program, it crashed. Here is the information:
|
I just tried to build and got the exact same backtrace. My guess is it's a problem with the ffmpeg version I built? The docs for |
I removed all the fields that were not being used from the MpegTS* structs. Then I looked at the differences between the struct definitions between what was committed and what was in the ffmpeg repo. For the difference that mattered I checked the git history and added a version check to include the field. Futhermore, the MpegTSWriteStream struct supposedly contained a pointer to a MpegTSService struct, however, I could not find any version of ffmpeg where this field exists. I removed it and removed the 2 references to it. After these changes, I'm able to build picam and I no longer get a segfault in hls_write_packet when dereferencing ts_st->service (see a backtrace here iizukanao#144 (comment)).
I removed all the fields that were not being used from the MpegTS* structs. Then I looked at the differences between the struct definitions between what was committed and what was in the ffmpeg repo. For the difference that mattered I checked the git history and added a version check to include the field. Futhermore, the MpegTSWriteStream struct supposedly contained a pointer to a MpegTSService struct, however, I could not find any version of ffmpeg where this field exists. I removed it and removed the 2 references to it. After these changes, I'm able to build picam and I no longer get a segfault in hls_write_packet when dereferencing ts_st->service (see a backtrace here iizukanao#144 (comment)).
This PR should fix the segfault: #153 You can get around the requirement for |
And this PR should clarify what version of ffmpeg to build so you don't get the |
The text was updated successfully, but these errors were encountered: