-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add bit stream filter support #61
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR ❤️
I've made some comments 👍
Also, could you add tests?
- for the bit stream filter, the best would be to add a
Name() string
function (and aString() string
function that would return the result of .Name()) in the struct, and in the test find a filter available by default and assert its name. - for the bit stream filter context, the best would be to test allocating a context, initializing it and freeing it. Before freeing it, that would be a good idea to test the getters and setters as well (for the Class you can use something similar to this). If you find a way to test Send/ReceivePacket that would be even better, but that's optionnal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Nice! Did you see the part of my comment mentioning tests as well? |
Will add tests later :) please don't merge it yet. |
The tests I introduced are passing:
They shouldn't cause any side effect though. |
Yeah testing |
Windows tests seem to be failing (without any error message, that would be too easy otherwise 🤦 ), I'll take a look |
:( I don't have a windows to test, otherwise I'd try to help. BTW, is it easy to run tests locally on macos? |
I'm using Github actions to run tests on windows and linux
Sure, as long as ffmpeg is installed and the proper environment variables are setup, a simple |
Thanks again for the PR! ❤️ Let me know whether you need a tag 👍 |
Add support to Bit Stream Filter.
src: https://github.com/FFmpeg/FFmpeg/blob/release/5.1/libavcodec/bsf.h