diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-26 14:07:03 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-26 14:07:03 +0100 |
commit | 438ed974b832634c544facaf6de3a23e9e7d774a (patch) | |
tree | e64ec8adb4d53435a816df57839693a44a7a690d /libavcodec/h2645_parse.h | |
parent | b5c10c4c9274b06a7bd6f6e1f0f4c129aa6e892c (diff) | |
parent | b667252a41fbf5a3f6ea8c67fdbc03db3d748977 (diff) | |
download | ffmpeg-438ed974b832634c544facaf6de3a23e9e7d774a.tar.gz |
Merge commit 'b667252a41fbf5a3f6ea8c67fdbc03db3d748977'
* commit 'b667252a41fbf5a3f6ea8c67fdbc03db3d748977':
h2645_parse: add support for parsing h264
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/h2645_parse.h')
-rw-r--r-- | libavcodec/h2645_parse.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libavcodec/h2645_parse.h b/libavcodec/h2645_parse.h index cbf07a2f9d..ce889dbb71 100644 --- a/libavcodec/h2645_parse.h +++ b/libavcodec/h2645_parse.h @@ -38,12 +38,23 @@ typedef struct H2645NAL { GetBitContext gb; + /** + * NAL unit type + */ int type; + + /** + * HEVC only, nuh_temporal_id_plus_1 - 1 + */ int temporal_id; int skipped_bytes; int skipped_bytes_pos_size; int *skipped_bytes_pos; + /** + * H264 only, nal_ref_idc + */ + int ref_idc; } H2645NAL; /* an input packet split into unescaped NAL units */ @@ -63,7 +74,8 @@ int ff_h2645_extract_rbsp(const uint8_t *src, int length, * Split an input packet into NAL units. */ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length, - void *logctx, int is_nalff, int nal_length_size); + void *logctx, int is_nalff, int nal_length_size, + enum AVCodecID codec_id); /** * Free all the allocated memory in the packet. |