Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
a3bed3f3
Commit
a3bed3f3
authored
Oct 24, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/ingenientdec: Add a probe function.
parent
9c069bf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
ingenientdec.c
libavformat/ingenientdec.c
+12
-1
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/ingenientdec.c
View file @
a3bed3f3
...
...
@@ -21,8 +21,18 @@
#include "avformat.h"
#include "rawdec.h"
#include "libavutil/intreadwrite.h"
// http://multimedia.cx/ingenient.txt
static
int
ingenient_probe
(
AVProbeData
*
p
)
{
if
(
AV_RN32
(
p
->
buf
)
!=
AV_RN32
(
"MJPG"
)
||
p
->
buf_size
<
50
||
AV_RB16
(
p
->
buf
+
48
)
!=
0xffd8
)
return
0
;
return
AVPROBE_SCORE_MAX
*
3
/
4
;
}
// http://www.artificis.hu/files/texts/ingenient.txt
static
int
ingenient_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
int
ret
,
size
,
w
,
h
,
unk1
,
unk2
;
...
...
@@ -57,6 +67,7 @@ AVInputFormat ff_ingenient_demuxer = {
.
name
=
"ingenient"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"raw Ingenient MJPEG"
),
.
priv_data_size
=
sizeof
(
FFRawVideoDemuxerContext
),
.
read_probe
=
ingenient_probe
,
.
read_header
=
ff_raw_video_read_header
,
.
read_packet
=
ingenient_read_packet
,
.
flags
=
AVFMT_GENERIC_INDEX
,
...
...
libavformat/version.h
View file @
a3bed3f3
...
...
@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 10
#define LIBAVFORMAT_VERSION_MICRO 10
1
#define LIBAVFORMAT_VERSION_MICRO 10
2
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
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