On Wed, Dec 18, 2019 at 08:55:04AM +0800, Limin Wang wrote: > On Tue, Dec 17, 2019 at 10:22:47PM +0100, Michael Niedermayer wrote: > > On Tue, Dec 17, 2019 at 06:22:15PM +0800, [email protected] wrote: > > > From: Limin Wang <[email protected]> > > > > > > Signed-off-by: Limin Wang <[email protected]> > > > --- > > > libavfilter/vf_showinfo.c | 20 ++++++++++++++++++++ > > > 1 file changed, 20 insertions(+) > > > > > > diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c > > > index 31f6b32aa4..0d227983c2 100644 > > > --- a/libavfilter/vf_showinfo.c > > > +++ b/libavfilter/vf_showinfo.c > > > @@ -169,6 +169,23 @@ static void > > > dump_content_light_metadata(AVFilterContext *ctx, AVFrameSideData *s > > > metadata->MaxCLL, metadata->MaxFALL); > > > } > > > > > > +static void dump_user_data_unregistered_metadata(AVFilterContext *ctx, > > > AVFrameSideData *sd) > > > +{ > > > + const int uuid_size = 16; > > > + > > > + if (sd->size < uuid_size) { > > > + av_log(ctx, AV_LOG_ERROR, "invalid data"); > > > + return; > > > + } > > > > The need for a UUID (of 16bytes) is not described in the text describing > > this side data type > By the specs: > user_data_unregistered( payloadSize ) { C Descriptor > uuid_iso_iec_11578 5 u(128) > for( i = 16; i < payloadSize; i++ ) > user_data_payload_byte 5 b(8) > }
ive been inprecise
what i have meant was this:
@@ -179,6 +179,13 @@ enum AVFrameSideDataType {
* array element is implied by AVFrameSideData.size /
AVRegionOfInterest.self_size.
*/
AV_FRAME_DATA_REGIONS_OF_INTEREST,
+
+ /**
+ * User data unregistered metadata associated with a video frame.
+ * This user data payload is stored as uint8_t in AVFrameSideData.data.
+ * The number of bytes of user data is AVFrameSideData.size.
+ */
+ AV_FRAME_DATA_USER_DATA_UNREGISTERED,
};
enum AVActiveFormatDescription {
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
