[FFmpeg-devel] [PATCH ]FLV Metadata

Anton Khirnov wyskas
Fri Aug 6 07:43:17 CEST 2010


>  
> +	if(s->metadata!=NULL){
> +		for(int i=0;i<s->metadata->count;i++)
> +		{
> +			put_amf_string(pb, s->metadata->elems[i].key);
> +			put_byte(pb, AMF_DATA_TYPE_STRING);		
> +			put_amf_string(pb, s->metadata->elems[i].value);
> +		}
this is wrong, you're not supposed to access stuff in AVMetadata
directly. to iterate over all tags call av_metadata_get with empty
string and AVMETADATA_IGNORE_SUFFIX flag in a loop (look at how all the
other demuxers do it).

Anton Khirnov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100806/98c23f2f/attachment.pgp>



More information about the ffmpeg-devel mailing list