Commit 18b47e7
committed
lavd probe fixes
Fixed incorrectly selected UYVY with following command:
uv -t testcard:codec=R12L -c libavcodec:encoder=hevc_nvenc --param force-lavd-decoder=hevc_cuvid -d dummy -V
There were 2 problems:
1. probed codec should be returned after first successful decoded frame
because in the above case, the decoder offers nv12 via get_frame
callback first and it changes later to yuv444p16le if decoding
continues and succeeds (see also 2.)
2. get_format_callback() returned VIDEO_CODDC_NONE on probe but that
caused subsequent initialization of 'hevc' decoder (because lavd
thought that it failed). Because of that, the probe couldn't have
proceeded.
After the changes, the probed format is R10k (correct for now -
get_best_ug_codec_to_av({AV_PIX_FMT_YUV444P16, 0}, 0) returns R10k).1 parent fb0729b commit 18b47e7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
| 968 | + | |
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| |||
0 commit comments