Closed pedroSG94 closed 2 months ago
Attention: Patch coverage is 2.77778%
with 35 lines
in your changes are missing coverage. Please review.
Project coverage is 55.53%. Comparing base (
d59174d
) to head (27ac498
).:exclamation: Current head 27ac498 differs from pull request most recent head 3cbdcff. Consider uploading reports for the commit 3cbdcff to get more accurate results
Files | Patch % | Lines |
---|---|---|
internal/protocols/rtmp/amf0/unmarshal.go | 2.77% | 35 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixed comment error and tests added
Hello, thank you very much for this patch - just one question, i noticed that you edited the parser in order to silently skip markerUnsupported and markerUndefined. Silently skipping things is something we've always avoided unless strictly necessary, because it makes detecting problems harder. Are you sure that this is necessary? thanks
Hello, thank you very much for this patch - just one question, i noticed that you edited the parser in order to silently skip markerUnsupported and markerUndefined. Silently skipping things is something we've always avoided unless strictly necessary, because it makes detecting problems harder. Are you sure that this is necessary? thanks
Hello,
It is not necessary, I only did this to avoid close a connection if this types are received because the connection could be possible skipping it. Maybe a good solution could be show a warning log for debug purpose. We can do it as you want. You know more about possible side effects, so maybe it is not a good idea to skip it anyway
i implemented StrictArray marshaling, added fuzz tests and removed the long string / XML / date handling, since those last entities are seldom used and would require additional logic. If you encounter these entities in the future, feel free to submit another patch.
This issue is mentioned in release v1.7.0 🚀 Check out the entire changelog by clicking here
Hello,
I did this PR to fix the error mentioned here: https://github.com/bluenviron/mediamtx/issues/3188 Also, I added others AMF0 types to decode extending the support:
With this, the server should support all AMF0 types decode except recordedset, movieclip and typed-object. recordedset and movieclip are reserved so you can ignore it. typed-object is a custom object serialized so ignored it should be fine too
Note: Strict Array implementation return nil value because I'm not sure how to return an array of item. Maybe you need fix it or give me a tip for it ( I'm new with golang :( )