summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
53ec7b2)
Set the return codes explicitly on the error path of functions not
returning an int error value.
picture_raw = avcodec_alloc_frame();
if (picture_raw == NULL) {
fprintf(stderr, "cannot allocate the raw picture frame!");
picture_raw = avcodec_alloc_frame();
if (picture_raw == NULL) {
fprintf(stderr, "cannot allocate the raw picture frame!");
picture_scaled = avcodec_alloc_frame();
if (picture_scaled == NULL) {
fprintf(stderr, "cannot allocate the scaled picture!\n");
picture_scaled = avcodec_alloc_frame();
if (picture_scaled == NULL) {
fprintf(stderr, "cannot allocate the scaled picture!\n");
goto cleanup_picture_raw;
}
goto cleanup_picture_raw;
}
out_buf = av_malloc(out_buf_size * sizeof(uint8_t));
if (out_buf == NULL) {
fprintf(stderr, "cannot allocate output data buffer!\n");
out_buf = av_malloc(out_buf_size * sizeof(uint8_t));
if (out_buf == NULL) {
fprintf(stderr, "cannot allocate output data buffer!\n");
goto cleanup_picture_scaled;
}
goto cleanup_picture_scaled;
}
NULL, NULL, NULL);
if (sw_scale_ctx == NULL) {
fprintf(stderr, "cannot set up the rescaling context!\n");
NULL, NULL, NULL);
if (sw_scale_ctx == NULL) {
fprintf(stderr, "cannot set up the rescaling context!\n");