Add support for identifying ffmpeg/libav libraries (#4227)

* Add support for identifying ffmpeg/libav libraries

Signed-off-by: Alan Pope <alan.pope@anchore.com>

* Undo my snippet-based confusion

Signed-off-by: Alan Pope <alan.pope@anchore.com>

* Put test fixture config back

Signed-off-by: Alan Pope <alan.pope@anchore.com>

---------

Signed-off-by: Alan Pope <alan.pope@anchore.com>
This commit is contained in:
Alan Pope
2025-09-26 10:43:47 -04:00
committed by GitHub
parent 0a36dabf23
commit e1483e0285
4 changed files with 47 additions and 0 deletions
@@ -1392,6 +1392,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("ffmpeg-binary"),
},
},
{
logicalFixture: "ffmpeg-shared-libs/5.1.4/linux-amd64",
expected: pkg.Package{
Name: "ffmpeg",
Version: "5.1.4",
Type: "binary",
PURL: "pkg:generic/ffmpeg@5.1.4",
Locations: locations("libavcodec"),
Metadata: metadata("ffmpeg-library"),
},
},
}
for _, test := range tests {