forked from CESNET/UltraGrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vcomp/lavc: check MJPEG params validity
MJPEG does produce wrong JPEGs[^1] if either slices or threads == 1 and the other not (until now also the implicit case, because the values are auto-adjusted). So if either is 1, auto-set the other value to 1 as well. If both are set and either is 1 and the other not, issue at least a warning. [^1]: for the s=1 && t>1, FFmpeg own decoder is capable to decode, but the bitstream is definitely wrong - instead of RST markers there are EOI markers.
- Loading branch information
1 parent
39dd39c
commit 5655d97
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters