Commit 42ff69a
committed
gpujpegtool: use gpujpeg_image_parameters initializer
Instead of zero-initialization, initialize with
gpujpeg_default_image_parameters().
This allows running with "incorrect" extension like '.bla', eg.:
```
gpujpegtool -e 1920x1080.tst out.jpg # prepare input
gpujpegtool -d out.jpg out.bla
```
Not sure if this is actually better behavior but it was written so
intentional by the commit 3313aa0. It ceased to work with further
updates. (Now produces additional warning inside the library: `[GPUJPEG]
[Error] GPUJPEG_IMAGE_FILE_UNKNOWN should not be passed!`).1 parent a47392e commit 42ff69a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
0 commit comments