doc/examples/filtering: make use of av_err2str()

Simplify.
pull/48/merge
Stefano Sabatini 11 years ago
parent 7b2534b0ea
commit 82e74ee6e4
  1. 4
      doc/examples/filtering_audio.c
  2. 4
      doc/examples/filtering_video.c

@ -254,9 +254,7 @@ end:
av_frame_free(&filt_frame);
if (ret < 0 && ret != AVERROR_EOF) {
char buf[1024];
av_strerror(ret, buf, sizeof(buf));
fprintf(stderr, "Error occurred: %s\n", buf);
fprintf(stderr, "Error occurred: %s\n", av_err2str(ret));
exit(1);
}

@ -243,9 +243,7 @@ end:
av_frame_free(&filt_frame);
if (ret < 0 && ret != AVERROR_EOF) {
char buf[1024];
av_strerror(ret, buf, sizeof(buf));
fprintf(stderr, "Error occurred: %s\n", buf);
fprintf(stderr, "Error occurred: %s\n", av_err2str(ret));
exit(1);
}

Loading…
Cancel
Save