History

avformat/mov: add support for APV streams

Dawid Kozinski committed 1 year ago

Commit 219f2341 parent 934e1c24 files · +10 −2Browse files

Unified · Split

4 files
  1. Changelog +1 −0
  2. libavformat/isom_tags.c +2 −0
  3. libavformat/mov.c +6 −1
  4. libavformat/version.h +1 −1
Changelog+1−0
@@ -21,6 +21,7 @@ version <next>: · 20 unmodified lines
21- G.728 decoder21- G.728 decoder
22- pad_cuda filter22- pad_cuda filter
23- Sanyo LD-ADPCM decoder23- Sanyo LD-ADPCM decoder
24- APV in MP4/ISOBMFF demuxing
24 25
25 26
26version 7.1:27version 7.1:
libavformat/isom_tags.c+2−0
@@ -299,6 +299,8 @@ const AVCodecTag ff_codec_movvideo_tags[] = { · 298 unmodified lines
299 299
300 { AV_CODEC_ID_AVS3, MKTAG('a', 'v', 's', '3') },300 { AV_CODEC_ID_AVS3, MKTAG('a', 'v', 's', '3') },
301 301
302 { AV_CODEC_ID_APV, MKTAG('a', 'p', 'v', '1') },
303
302 { AV_CODEC_ID_NONE, 0 },304 { AV_CODEC_ID_NONE, 0 },
303};305};
304 306
libavformat/mov.c+6−1
@@ -2987,6 +2987,7 @@ static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb, · 2986 unmodified lines
2987 case AV_CODEC_ID_VP9:2987 case AV_CODEC_ID_VP9:
2988 sti->need_parsing = AVSTREAM_PARSE_FULL;2988 sti->need_parsing = AVSTREAM_PARSE_FULL;
2989 break;2989 break;
2990 case AV_CODEC_ID_APV:
2990 case AV_CODEC_ID_EVC:2991 case AV_CODEC_ID_EVC:
2991 case AV_CODEC_ID_AV1:2992 case AV_CODEC_ID_AV1:
2992 /* field_order detection of H264 requires parsing */2993 /* field_order detection of H264 requires parsing */
@@ -9325,6 +9326,7 @@ static const MOVParseTableEntry mov_default_parse_table[] = { · 6332 unmodified lines
9325{ MKTAG('a','m','v','e'), mov_read_amve }, /* ambient viewing environment box */9326{ MKTAG('a','m','v','e'), mov_read_amve }, /* ambient viewing environment box */
9326{ MKTAG('l','h','v','C'), mov_read_lhvc },9327{ MKTAG('l','h','v','C'), mov_read_lhvc },
9327{ MKTAG('l','v','c','C'), mov_read_glbl },9328{ MKTAG('l','v','c','C'), mov_read_glbl },
9329{ MKTAG('a','p','v','C'), mov_read_glbl },
9328#if CONFIG_IAMFDEC9330#if CONFIG_IAMFDEC
9329{ MKTAG('i','a','c','b'), mov_read_iacb },9331{ MKTAG('i','a','c','b'), mov_read_iacb },
9330#endif9332#endif
@@ -11032,7 +11034,10 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) · 1701 unmodified lines
11032 return FFERROR_REDO;11034 return FFERROR_REDO;
11033 }11035 }
11034#endif11036#endif
11035 else11037 else if (st->codecpar->codec_id == AV_CODEC_ID_APV && sample->size > 4) {
11038 const uint32_t au_size = avio_rb32(sc->pb);
11039 ret = av_get_packet(sc->pb, pkt, au_size);
11040 } else
11036 ret = av_get_packet(sc->pb, pkt, sample->size);11041 ret = av_get_packet(sc->pb, pkt, sample->size);
11037 if (ret < 0) {11042 if (ret < 0) {
11038 if (should_retry(sc->pb, ret)) {11043 if (should_retry(sc->pb, ret)) {
libavformat/version.h+1−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
32#include "version_major.h"32#include "version_major.h"
33 33
34#define LIBAVFORMAT_VERSION_MINOR 134#define LIBAVFORMAT_VERSION_MINOR 1
35#define LIBAVFORMAT_VERSION_MICRO 10135#define LIBAVFORMAT_VERSION_MICRO 102
36 36
37#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \37#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
38 LIBAVFORMAT_VERSION_MINOR, \38 LIBAVFORMAT_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t