diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-03-29 04:09:14 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-04-24 10:06:24 +0200 |
commit | 98c97994c5b90bdae02accb155eeceeb5224b8ef (patch) | |
tree | 6b1d8f2e9e22048be95d2dc6d1072b8d533e95d2 /libavcodec/h264_parse.h | |
parent | 728d90a0c1973661a9e73da697bf4f90c9d19577 (diff) | |
download | ffmpeg-98c97994c5b90bdae02accb155eeceeb5224b8ef.tar.gz |
h264: decouple extradata parsing from the decoder
This will allow decoupling the parser from the decoder.
Diffstat (limited to 'libavcodec/h264_parse.h')
-rw-r--r-- | libavcodec/h264_parse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/h264_parse.h b/libavcodec/h264_parse.h index c47b420e49..617ee4e940 100644 --- a/libavcodec/h264_parse.h +++ b/libavcodec/h264_parse.h @@ -54,6 +54,7 @@ typedef struct H264POCContext { struct SPS; struct PPS; +struct H264ParamSets; int ff_h264_pred_weight_table(GetBitContext *gb, const struct SPS *sps, const int *ref_count, int slice_type_nos, @@ -82,4 +83,8 @@ int ff_h264_init_poc(int pic_field_poc[2], int *pic_poc, const struct SPS *sps, H264POCContext *poc, int picture_structure, int nal_ref_idc); +int ff_h264_decode_extradata(const uint8_t *data, int size, struct H264ParamSets *ps, + int *is_avc, int *nal_length_size, + int err_recognition, void *logctx); + #endif /* AVCODEC_H264_PARSE_H */ |