do not call read_header()

Looks like this is private and has never been intended to be call by us.
This commit is contained in:
Christian Hesse 2024-06-21 22:59:17 +02:00
parent e8a863fadb
commit 1391de49d2

View file

@ -55,11 +55,6 @@ int main(int argc, char **argv) {
goto next;
}
if (pFormatCtx->iformat->read_header(pFormatCtx) < 0) {
fprintf(stderr, "%s: could not read the format header\n", argv[i]);
goto next;
}
/* find the first attached picture, if available */
for (j = 0; j < pFormatCtx->nb_streams; j++) {
if (pFormatCtx->streams[j]->disposition & AV_DISPOSITION_ATTACHED_PIC) {