Merge remote-tracking branch 'qatar/master'
* qatar/master: crypto: Use av_freep instead of av_free lavf: don't try to free private options if priv_data is NULL. swscale: fix types of assembly arguments. swscale: move two macros that are only used once into caller. swscale: remove unused function. options: Add missing braces around struct initializer. mov: Remove leftover crufty debug statement with references to a local file. dvbsubdec: Fix compilation of debug code. Remove all uses of now deprecated metadata functions. Move metadata API from lavf to lavu. Conflicts: doc/APIchanges libavformat/aiffdec.c libavformat/asfdec.c libavformat/avformat.h libavformat/avidec.c libavformat/cafdec.c libavformat/matroskaenc.c libavformat/mov.c libavformat/mp3enc.c libavformat/wtv.c libavutil/avutil.h libavutil/internal.h libswscale/swscale.c libswscale/x86/swscale_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -21,6 +21,7 @@
|
||||
#include "avformat.h"
|
||||
#include "avio_internal.h"
|
||||
#include "rm.h"
|
||||
#include "libavutil/dict.h"
|
||||
|
||||
typedef struct {
|
||||
int nb_packets;
|
||||
@ -71,7 +72,7 @@ static int rv10_write_header(AVFormatContext *ctx,
|
||||
const char *desc, *mimetype;
|
||||
int nb_packets, packet_total_size, packet_max_size, size, packet_avg_size, i;
|
||||
int bit_rate, v, duration, flags, data_pos;
|
||||
AVMetadataTag *tag;
|
||||
AVDictionaryEntry *tag;
|
||||
|
||||
start_ptr = s->buf_ptr;
|
||||
|
||||
@ -127,13 +128,13 @@ static int rv10_write_header(AVFormatContext *ctx,
|
||||
ffio_wfourcc(s,"CONT");
|
||||
size = 4 * 2 + 10;
|
||||
for(i=0; i<FF_ARRAY_ELEMS(ff_rm_metadata); i++) {
|
||||
tag = av_metadata_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
|
||||
tag = av_dict_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
|
||||
if(tag) size += strlen(tag->value);
|
||||
}
|
||||
avio_wb32(s,size);
|
||||
avio_wb16(s,0);
|
||||
for(i=0; i<FF_ARRAY_ELEMS(ff_rm_metadata); i++) {
|
||||
tag = av_metadata_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
|
||||
tag = av_dict_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
|
||||
put_str(s, tag ? tag->value : "");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user