You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
doc/examples/qsv_decode: use av_err2str
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
This commit is contained in:
committed by
Marvin Scholz
parent
e93a43b511
commit
9b9a287872
@@ -219,11 +219,8 @@ int main(int argc, char **argv)
|
|||||||
ret = decode_packet(decoder_ctx, frame, sw_frame, NULL, output_ctx);
|
ret = decode_packet(decoder_ctx, frame, sw_frame, NULL, output_ctx);
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
if (ret < 0) {
|
if (ret < 0)
|
||||||
char buf[1024];
|
fprintf(stderr, "%s\n", av_err2str(ret));
|
||||||
av_strerror(ret, buf, sizeof(buf));
|
|
||||||
fprintf(stderr, "%s\n", buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
avformat_close_input(&input_ctx);
|
avformat_close_input(&input_ctx);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user