diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-10 23:21:34 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-16 01:13:38 +0100 |
commit | a38e06c1aaac3002838e19612df375d42cc28a76 (patch) | |
tree | 0a9bbb4aa193aa7d35c7b1cbbe49120f25ea9211 /ffserver_config.h | |
parent | 2657f00d3f99fe624c257b3f46a805478757d778 (diff) | |
download | ffmpeg-a38e06c1aaac3002838e19612df375d42cc28a76.tar.gz |
ffserver_config: handle codec private options
This commit allows to set codec's private option.
As side effect, it also improves preset support.
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'ffserver_config.h')
-rw-r--r-- | ffserver_config.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ffserver_config.h b/ffserver_config.h index 6b64dc57cd..57deb5b271 100644 --- a/ffserver_config.h +++ b/ffserver_config.h @@ -107,15 +107,18 @@ typedef struct FFServerConfig { int errors; int warnings; // Following variables MUST NOT be used outside configuration parsing code. - enum AVCodecID audio_id; - enum AVCodecID video_id; + enum AVCodecID guessed_audio_codec_id; + enum AVCodecID guessed_video_codec_id; AVDictionary *video_opts; /* AVOptions for video encoder */ AVDictionary *video_conf; /* Values stored in video AVCodecContext.fields */ AVDictionary *audio_opts; /* AVOptions for audio encoder */ AVDictionary *audio_conf; /* Values stored in audio AVCodecContext.fields */ char *video_preset; char *audio_preset; - AVCodecContext *dummy_ctx; /* Used internally to test AVOptions. Not to be used anywhere else */ + AVCodecContext *dummy_actx; /* Used internally to test audio AVOptions. */ + AVCodecContext *dummy_vctx; /* Used internally to test video AVOptions. */ + int no_audio; + int no_video; } FFServerConfig; void ffserver_get_arg(char *buf, int buf_size, const char **pp); |