Revision c04c3282 libavformat/utils.c

View differences:

libavformat/utils.c
465 465
{
466 466
    int err;
467 467
    AVFormatContext *ic;
468
    AVFormatParameters default_ap;
469

  
470
    if(!ap){
471
        ap=&default_ap;
472
        memset(ap, 0, sizeof(default_ap));
473
    }
468 474

  
469 475
    ic = av_alloc_format_context();
470 476
    if (!ic) {

Also available in: Unified diff