Revision 98ac192b ffprobe.c

View differences:

ffprobe.c
261 261
static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
262 262
{
263 263
    int err, i;
264
    AVFormatParameters fmt_params;
264 265
    AVFormatContext *fmt_ctx;
265 266

  
267
    memset(&fmt_params, 0, sizeof(fmt_params));
268
    fmt_params.prealloced_context = 1;
266 269
    fmt_ctx = avformat_alloc_context();
267 270
    set_context_opts(fmt_ctx, avformat_opts, AV_OPT_FLAG_DECODING_PARAM, NULL);
268 271

  
269
    if ((err = av_open_input_file(&fmt_ctx, filename, iformat, 0, NULL)) < 0) {
272
    if ((err = av_open_input_file(&fmt_ctx, filename, iformat, 0, &fmt_params)) < 0) {
270 273
        print_error(filename, err);
271 274
        return err;
272 275
    }

Also available in: Unified diff