Skip to content

Return plain 0/-1 from the app instead of library return codes - #165

Merged
mpeg5 merged 1 commit into
masterfrom
app_exit_code
Aug 7, 2026
Merged

Return plain 0/-1 from the app instead of library return codes#165
mpeg5 merged 1 commit into
masterfrom
app_exit_code

Conversation

@kpchoi

@kpchoi kpchoi commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

The app should exit with plain 0/-1 process codes; XEVE_* return values belong to the library API. main() could previously leak a library error code (e.g. from xeve_encode()) as the process exit code, so map it once at the end using XEVE_SUCCEEDED().

No behavior change otherwise: encode output verified bit-exact, success still exits 0 and error paths exit -1.

Signed-off-by: KP Choi <kp5.choi@samsung.com>

@cpncf cpncf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mpeg5
mpeg5 merged commit 0b77b4a into master Aug 7, 2026
6 checks passed
@kpchoi
kpchoi deleted the app_exit_code branch August 8, 2026 04:47
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.

3 participants