Commit 5f77951
committed
avcodec/nvenc: only unregister input resources when absolutely needed
This reverts nvenc to old behaviour, which in some super rare edge cases
performs better.
The implication of this is that any potential API user who relies on
nvenc cleaning up every frames device resources after it's done using
them will now have to make a custom build of ffmpeg with the
compile-time define NVENC_UNREGISTER_IMMEDIATELY set to 1.
Pretty much nobody should need to set this, since the normal usage
pattern of nvenc usually makes sure all frames are allocated from a
common pool which reuses device resources as much as possible and holds
on to them until the encode session ends.1 parent 7c2ee8d commit 5f77951
2 files changed
+29
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
| 1563 | + | |
1564 | 1564 | | |
1565 | 1565 | | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
1574 | 1579 | | |
1575 | | - | |
1576 | 1580 | | |
1577 | 1581 | | |
1578 | 1582 | | |
| |||
1846 | 1850 | | |
1847 | 1851 | | |
1848 | 1852 | | |
| 1853 | + | |
1849 | 1854 | | |
1850 | 1855 | | |
1851 | 1856 | | |
1852 | 1857 | | |
1853 | 1858 | | |
1854 | 1859 | | |
1855 | 1860 | | |
| 1861 | + | |
1856 | 1862 | | |
1857 | 1863 | | |
1858 | 1864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
| |||
0 commit comments