Signed-off-by: clarkh <hungkuish...@outlook.com> --- doc/examples/qsv_transcode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c index 48128b200c..972126800b 100644 --- a/doc/examples/qsv_transcode.c +++ b/doc/examples/qsv_transcode.c @@ -62,10 +62,10 @@ static int str_to_dict(char* optstr, AVDictionary **opt) return 0; key = strtok(optstr, " "); if (key == NULL) - return AVERROR(ENAVAIL); + return AVERROR(EINVAL); value = strtok(NULL, " "); if (value == NULL) - return AVERROR(ENAVAIL); + return AVERROR(EINVAL); av_dict_set(opt, key, value, 0); do { key = strtok(NULL, " "); @@ -73,7 +73,7 @@ static int str_to_dict(char* optstr, AVDictionary **opt) return 0; value = strtok(NULL, " "); if (value == NULL) - return AVERROR(ENAVAIL); + return AVERROR(EINVAL); av_dict_set(opt, key, value, 0); } while(key != NULL); return 0; @@ -181,7 +181,7 @@ static int open_input_file(char *filename) break; default: fprintf(stderr, "Codec is not supportted by qsv\n"); - return AVERROR(ENAVAIL); + return AVERROR(EINVAL); } if (!(decoder_ctx = avcodec_alloc_context3(decoder))) -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".