Re: [FFmpeg-devel] [PATCH v2] fate/api-h264-slice-test: use cleaner error handling

2018-10-29 Thread Carl Eugen Hoyos
2018-10-29 15:49 GMT+01:00, jos...@ob-encoder.com : > while(1) { > uint16_t size = 0; > -ssize_t ret = fread(&size, 1, sizeof(uint16_t), fd); > -if (ret < 0) { > -perror("Couldn't read size"); > -exit(1); > -} else if (ret != sizeof(uin

[FFmpeg-devel] [PATCH v2] fate/api-h264-slice-test: use cleaner error handling

2018-10-29 Thread joshdk
From: Josh de Kock --- tests/api/api-h264-slice-test.c | 85 +++-- 1 file changed, 48 insertions(+), 37 deletions(-) diff --git a/tests/api/api-h264-slice-test.c b/tests/api/api-h264-slice-test.c index 57e7dc79c3..b3f9f91ab3 100644 --- a/tests/api/api-h264-slice-test