Commit dd5fda2
committed
get_ug_codec_to_av: prefer first AV codecs
If earlier codec is convertible, use this. In other words, prefer first
codecs, not those most easily convertible.
The point is, that the list passed to get_format lavd callback is
usually ordered from best codecs so we want to keep it.
It also fixes a "regression" from 4c5cf6f (given by the different
selection schemes in original and the replacement):
uv -t testcard:codec=R12L -c libavcodec:encoder=libsvt_hevc -d dummy \
--param force-lavd-decoder=libde265 -V
decoding YUYV, not v210 (from AVPixelFomat AV_PIX_FMT_YUV444P10LE)1 parent 63043e2 commit dd5fda2
1 file changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1982 | 1982 | | |
1983 | 1983 | | |
1984 | 1984 | | |
1985 | | - | |
1986 | | - | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
1987 | 1988 | | |
1988 | 1989 | | |
1989 | 1990 | | |
| |||
2002 | 2003 | | |
2003 | 2004 | | |
2004 | 2005 | | |
2005 | | - | |
2006 | | - | |
2007 | | - | |
2008 | | - | |
2009 | | - | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
2010 | 2009 | | |
2011 | 2010 | | |
2012 | 2011 | | |
| |||
0 commit comments