Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-01 18:59:47 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-05-02 04:58:09 +0400
commitc92a9d069e8be8f0d71c9e48bed508f32b5d7c2a (patch)
tree4f7b7a5cc5fe19af7c52000bbb04793816173179 /ffplay.c
parent5edb23295edf9bffd94f08b7475632473c0453bd (diff)
ffplay: demuxer specific options support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 945e08ff69..40fad52d28 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2381,10 +2381,18 @@ static int read_thread(void *arg)
ap->height= frame_height;
ap->time_base= (AVRational){1, 25};
ap->pix_fmt = frame_pix_fmt;
+ ic->flags |= AVFMT_FLAG_PRIV_OPT;
- set_context_opts(ic, avformat_opts, AV_OPT_FLAG_DECODING_PARAM, NULL);
err = av_open_input_file(&ic, is->filename, is->iformat, 0, ap);
+ if (err >= 0) {
+ set_context_opts(ic, avformat_opts, AV_OPT_FLAG_DECODING_PARAM, NULL);
+ err = av_demuxer_open(ic, ap);
+ if(err < 0){
+ avformat_free_context(ic);
+ ic= NULL;
+ }
+ }
if (err < 0) {
print_error(is->filename, err);
ret = -1;