Revision ab5a0175 libavformat/utils.c

View differences:

libavformat/utils.c
2546 2546
                av_log(s, AV_LOG_ERROR, "time base not set\n");
2547 2547
                return -1;
2548 2548
            }
2549
            if(st->codec->width<=0 || st->codec->height<=0){
2549
            if((st->codec->width<=0 || st->codec->height<=0) && !(s->oformat->flags & AVFMT_NODIMENSIONS)){
2550 2550
                av_log(s, AV_LOG_ERROR, "dimensions not set\n");
2551 2551
                return -1;
2552 2552
            }

Also available in: Unified diff