mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +01:00
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:
@@ -22,6 +22,7 @@
|
||||
//#define DEBUG
|
||||
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavutil/dict.h"
|
||||
#include "avformat.h"
|
||||
|
||||
typedef struct {
|
||||
@@ -98,7 +99,7 @@ static int r3d_read_red1(AVFormatContext *s)
|
||||
|
||||
avio_read(s->pb, filename, 257);
|
||||
filename[sizeof(filename)-1] = 0;
|
||||
av_metadata_set2(&st->metadata, "filename", filename, 0);
|
||||
av_dict_set(&st->metadata, "filename", filename, 0);
|
||||
|
||||
av_dlog(s, "filename %s\n", filename);
|
||||
av_dlog(s, "resolution %dx%d\n", st->codec->width, st->codec->height);
|
||||
|
||||
Reference in New Issue
Block a user