mirror of
https://github.com/simon987/sist2.git
synced 2025-12-14 07:49:06 +00:00
bugfixes & refactoring
This commit is contained in:
@@ -153,6 +153,10 @@ void parse_media(const char *filepath, document_t *doc) {
|
||||
int video_stream = -1;
|
||||
|
||||
AVFormatContext *pFormatCtx = avformat_alloc_context();
|
||||
if (pFormatCtx == NULL) {
|
||||
fprintf(stderr, "Could not allocate AVFormatContext! %s \n", filepath);
|
||||
return;
|
||||
}
|
||||
int res = avformat_open_input(&pFormatCtx, filepath, NULL, NULL);
|
||||
if (res < 0) {
|
||||
printf("ERR%s %s\n", filepath, av_err2str(res));
|
||||
|
||||
Reference in New Issue
Block a user