Skip to content
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 mjpeg type 0 check #605

Merged
merged 2 commits into from
Aug 25, 2024
Merged

Fix mjpeg type 0 check #605

merged 2 commits into from
Aug 25, 2024

Conversation

kevmo314
Copy link
Contributor

Type 0 corresponds to YUV 4:2:2. Since this header is passed directly to the JPEG header, no additional changes are necessary for support. See the type field here: https://datatracker.ietf.org/doc/html/rfc2435#section-4.1

I have a stream producing YUV 4:2:2 mjpeg over RTSP and have confirmed manually that piping this through ffmpeg as a jpeg decoder results in correct decoding.

kevmo314 and others added 2 commits August 25, 2024 21:22
Type 0 corresponds to YUV 4:2:2. Since this header is passed directly to the JPEG header, no additional changes are necessary for support. See the type field here: https://datatracker.ietf.org/doc/html/rfc2435#section-4.1

I have a stream producing YUV 4:2:2 mjpeg over RTSP and have confirmed manually that piping this through ffmpeg as a jpeg decoder results in correct decoding.
Copy link

codecov bot commented Aug 25, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.31%. Comparing base (ff5bda0) to head (ddaac5a).
Report is 1 commits behind head on main.

Files Patch % Lines
pkg/format/rtpmjpeg/encoder.go 0.00% 0 Missing and 1 partial ⚠️
pkg/format/rtpmjpeg/header_jpeg.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #605      +/-   ##
==========================================
+ Coverage   81.26%   81.31%   +0.05%     
==========================================
  Files         115      115              
  Lines       11622    11622              
==========================================
+ Hits         9445     9451       +6     
+ Misses       1769     1765       -4     
+ Partials      408      406       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aler9 aler9 merged commit a99cc55 into bluenviron:main Aug 25, 2024
8 of 9 checks passed
@aler9
Copy link
Member

aler9 commented Aug 25, 2024

Hello, i checked in other implementations and i found out that types 0-63 can be enabled without further changes, so i expanded the check in both the decoder and encoder. This has been merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants