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
1696c72a
Commit
1696c72a
authored
Nov 25, 2012
by
Peter Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iff demuxer: include DEEP TVDC lookup table in extradata buffer
Signed-off-by:
Peter Ross
<
pross@xvid.org
>
parent
59fe5a33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
iff.c
libavformat/iff.c
+12
-1
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/iff.c
View file @
1696c72a
...
...
@@ -68,6 +68,7 @@
#define ID_DBOD MKTAG('D','B','O','D')
#define ID_DPEL MKTAG('D','P','E','L')
#define ID_DLOC MKTAG('D','L','O','C')
#define ID_TVDC MKTAG('T','V','D','C')
#define LEFT 2
#define RIGHT 4
...
...
@@ -81,7 +82,7 @@
* set it to smallest possible size of 2 to indicate that there's
* no extradata changing in this frame.
*/
#define IFF_EXTRA_VIDEO_SIZE
9
#define IFF_EXTRA_VIDEO_SIZE
41
typedef
enum
{
COMP_NONE
,
...
...
@@ -102,6 +103,7 @@ typedef struct {
unsigned
flags
;
///< 1 for EHB, 0 is no extra half darkening
unsigned
transparency
;
///< transparency color index in palette
unsigned
masking
;
///< masking method used
uint8_t
tvdc
[
32
];
///< TVDC lookup table
}
IffDemuxContext
;
/* Metadata string read */
...
...
@@ -313,6 +315,14 @@ static int iff_read_header(AVFormatContext *s)
st
->
codec
->
height
=
avio_rb16
(
pb
);
break
;
case
ID_TVDC
:
if
(
data_size
<
sizeof
(
iff
->
tvdc
))
return
AVERROR_INVALIDDATA
;
res
=
avio_read
(
pb
,
iff
->
tvdc
,
sizeof
(
iff
->
tvdc
));
if
(
res
<
0
)
return
res
;
break
;
case
ID_ANNO
:
case
ID_TEXT
:
metadata_tag
=
"comment"
;
break
;
case
ID_AUTH
:
metadata_tag
=
"artist"
;
break
;
...
...
@@ -403,6 +413,7 @@ static int iff_read_header(AVFormatContext *s)
bytestream_put_byte
(
&
buf
,
iff
->
flags
);
bytestream_put_be16
(
&
buf
,
iff
->
transparency
);
bytestream_put_byte
(
&
buf
,
iff
->
masking
);
bytestream_put_buffer
(
&
buf
,
iff
->
tvdc
,
sizeof
(
iff
->
tvdc
));
st
->
codec
->
codec_id
=
AV_CODEC_ID_IFF_ILBM
;
break
;
default:
...
...
libavformat/version.h
View file @
1696c72a
...
...
@@ -30,7 +30,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 54
#define LIBAVFORMAT_VERSION_MINOR 4
2
#define LIBAVFORMAT_VERSION_MINOR 4
3
#define LIBAVFORMAT_VERSION_MICRO 100
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
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