Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
eb31256f
Commit
eb31256f
authored
9 years ago
by
Eric Zimmerman
Committed by
Vittorio Giovara
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
g2meet: Support G2M5 codec variant
Signed-off-by:
Vittorio Giovara
<
vittorio.giovara@gmail.com
>
parent
88d1fb4e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavcodec/g2meet.c
+2
-2
2 additions, 2 deletions
libavcodec/g2meet.c
libavcodec/version.h
+1
-1
1 addition, 1 deletion
libavcodec/version.h
libavformat/riff.c
+1
-0
1 addition, 0 deletions
libavformat/riff.c
with
4 additions
and
3 deletions
libavcodec/g2meet.c
+
2
−
2
View file @
eb31256f
...
...
@@ -685,12 +685,12 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data,
magic
=
bytestream2_get_be32
(
&
bc
);
if
((
magic
&
~
0xF
)
!=
MKBETAG
(
'G'
,
'2'
,
'M'
,
'0'
)
||
(
magic
&
0xF
)
<
2
||
(
magic
&
0xF
)
>
4
)
{
(
magic
&
0xF
)
<
2
||
(
magic
&
0xF
)
>
5
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Wrong magic %08X
\n
"
,
magic
);
return
AVERROR_INVALIDDATA
;
}
if
((
magic
&
0xF
)
!=
4
)
{
if
((
magic
&
0xF
)
<
4
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"G2M2 and G2M3 are not yet supported
\n
"
);
return
AVERROR
(
ENOSYS
);
}
...
...
This diff is collapsed.
Click to expand it.
libavcodec/version.h
+
1
−
1
View file @
eb31256f
...
...
@@ -30,7 +30,7 @@
#define LIBAVCODEC_VERSION_MAJOR 56
#define LIBAVCODEC_VERSION_MINOR 23
#define LIBAVCODEC_VERSION_MICRO
0
#define LIBAVCODEC_VERSION_MICRO
1
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
This diff is collapsed.
Click to expand it.
libavformat/riff.c
+
1
−
0
View file @
eb31256f
...
...
@@ -349,6 +349,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
{
AV_CODEC_ID_G2M
,
MKTAG
(
'G'
,
'2'
,
'M'
,
'2'
)
},
{
AV_CODEC_ID_G2M
,
MKTAG
(
'G'
,
'2'
,
'M'
,
'3'
)
},
{
AV_CODEC_ID_G2M
,
MKTAG
(
'G'
,
'2'
,
'M'
,
'4'
)
},
{
AV_CODEC_ID_G2M
,
MKTAG
(
'G'
,
'2'
,
'M'
,
'5'
)
},
{
AV_CODEC_ID_FIC
,
MKTAG
(
'F'
,
'I'
,
'C'
,
'V'
)
},
{
AV_CODEC_ID_HQX
,
MKTAG
(
'C'
,
'H'
,
'Q'
,
'X'
)
},
{
AV_CODEC_ID_TDSC
,
MKTAG
(
'T'
,
'D'
,
'S'
,
'C'
)
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment