X-Git-Url: https://git.libav.org/?p=libav.git;a=blobdiff_plain;f=libavcodec%2Fcbs_h264.h;h=8c17680bb549cf6cea3b80e29f9f5b724d5dd041;hp=14ea69ae286df97beb24741260cba59447fba2e9;hb=a2ca8ed903b435446031a8a0792ca535e6ee2913;hpb=ce5870a3a8f2b10668ee4f04c2ae0287f66f31b2 diff --git a/libavcodec/cbs_h264.h b/libavcodec/cbs_h264.h index 14ea69ae28..8c17680bb5 100644 --- a/libavcodec/cbs_h264.h +++ b/libavcodec/cbs_h264.h @@ -22,6 +22,7 @@ #include #include +#include "cbs.h" #include "cbs_h2645.h" #include "h264.h" @@ -428,4 +429,22 @@ typedef struct CodedBitstreamH264Context { } CodedBitstreamH264Context; +/** + * Add an SEI message to an access unit. + */ +int ff_cbs_h264_add_sei_message(CodedBitstreamContext *ctx, + CodedBitstreamFragment *access_unit, + const H264RawSEIPayload *payload); + +/** + * Delete an SEI message from an access unit. + * + * Deletes from nal_unit, which must be an SEI NAL unit. If this is the + * last message in nal_unit, also deletes it from access_unit. + */ +int ff_cbs_h264_delete_sei_message(CodedBitstreamContext *ctx, + CodedBitstreamFragment *access_unit, + CodedBitstreamUnit *nal_unit, + int position); + #endif /* AVCODEC_CBS_H264_H */