diff options
author | Eric Zimmerman <eric@zimtek.com> | 2015-04-17 13:39:01 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-19 23:45:35 +0100 |
commit | eb31256f12bf0c85aded1612551ce9230356879e (patch) | |
tree | 5dc290049375eb76b4082fa24c42778f8643208e /libavcodec/g2meet.c | |
parent | 88d1fb4e3f156d8fd5bb6cb3ba3a9ef1e6d6fb08 (diff) | |
download | ffmpeg-streaming-eb31256f12bf0c85aded1612551ce9230356879e.zip ffmpeg-streaming-eb31256f12bf0c85aded1612551ce9230356879e.tar.gz |
g2meet: Support G2M5 codec variant
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/g2meet.c')
-rw-r--r-- | libavcodec/g2meet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index 475c244..b3d2bc4 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c @@ -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); } |