mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
fix coverart
Origin commit data
------------------
Branch: master
Commit: 5509c8c0c6
Author: TangoCash <eric@loxat.de>
Date: 2017-10-27 (Fri, 27 Oct 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -758,7 +758,7 @@ bool Input::GetMetadata(std::vector<std::string> &keys, std::vector<std::string>
|
||||
for(unsigned int i = 0; i < avfc->nb_streams; i++) {
|
||||
if (avfc->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC) {
|
||||
AVPacket *pkt = &avfc->streams[i]->attached_pic;
|
||||
FILE *cover_art = fopen("/tmp/cover.jpg", "wb");
|
||||
FILE *cover_art = fopen("/tmp/.id3coverart", "wb");
|
||||
if (cover_art) {
|
||||
fwrite(pkt->data, pkt->size, 1, cover_art);
|
||||
fclose(cover_art);
|
||||
|
Reference in New Issue
Block a user