Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e9817636
Commit
e9817636
authored
Dec 13, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/flac_picture: try to guess PNG by actual picture data
Fixes #5028.
parent
6f058b5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
flac_picture.c
libavformat/flac_picture.c
+5
-0
No files found.
libavformat/flac_picture.c
View file @
e9817636
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
*/
*/
#include "libavutil/avassert.h"
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/png.h"
#include "avformat.h"
#include "avformat.h"
#include "flac_picture.h"
#include "flac_picture.h"
#include "id3v2.h"
#include "id3v2.h"
...
@@ -119,6 +121,9 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size)
...
@@ -119,6 +121,9 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size)
goto
fail
;
goto
fail
;
}
}
if
(
AV_RB64
(
data
->
data
)
==
PNGSIG
)
id
=
AV_CODEC_ID_PNG
;
st
=
avformat_new_stream
(
s
,
NULL
);
st
=
avformat_new_stream
(
s
,
NULL
);
if
(
!
st
)
{
if
(
!
st
)
{
RETURN_ERROR
(
AVERROR
(
ENOMEM
));
RETURN_ERROR
(
AVERROR
(
ENOMEM
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment