-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix windows crash on %20N #246
Conversation
@phunkyfish this fixes the crash for me noticed the same av_dump was logged twice as well so removed one and then commented the other two |
Do you think it’s the Or is it the ffmpeg dump call itself. |
FYI, you can ignore the errors for Apple platforms. That’s something else. |
i put %20N in the url before | (https://i.mjh.nz/tvnz-1.m3u8#%20N But exact same url crashed ffmpegdirect that tells me its an issue in GetRedactedCall |
there is a difference between direct and kodi using %20M (not N) kodi: ffmpeg[0x1d6c2f6cd60]: Input #0, hls, from 'https://i.mjh.nz/tvnz-1.m3u8#%20M': |
|
seems like the redacted / code before that is not escaping the str correctly. But if I use https://i.mjh.nz/tvnz-1.m3u8|user-agent=Windows%%20NT So i think maybe redacted is fine but it should be getting an already escaped string? |
So parsing the URL works correctly but parsing the options fails? |
Double %% in url is ok but %% in user-agent crashes. Single % crashes in either url or user-agent Maybe a urldecode is needed early on? |
There are a few urlencode’s about, ffmpegdirect has one too I think. The real question is detecting when it needs to be applied. We don’t want to encode an already encoded URL. Here it is:
|
How about we cheat a little and just check for you your use case and encode in that one specific case and see does it work? |
my use case is %20N in user-agent that crashes. %%20N also crashes in user-agent. So I see no easy way to workaround the issue unfortunately. I've run out of time to debug this any further. hopefully someone eventually fixes :) |
Will try to get it running in a debugger and see can I figure out something. |
So I just set up the debugger and then realised it is a windows only issue. Facepalm. |
fixes #229