diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-12 20:35:29 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-12 20:35:29 +0000 |
commit | ab5a0175f5ab90ad8c27beb8b9f12e99c846e83c (patch) | |
tree | 73d830659813db830b491967d7715a26205cf6ac /libavformat/utils.c | |
parent | 3566042a0dfd7c016e6e9945e63699dd7296adb2 (diff) | |
download | ffmpeg-ab5a0175f5ab90ad8c27beb8b9f12e99c846e83c.tar.gz |
Add flag so muxers not needing width/height can signal this.
Add this flag to img2 (fixes -vcodec copy to image2 in some cases)
Originally committed as revision 21773 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 34a7b72505..4829446312 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2546,7 +2546,7 @@ int av_write_header(AVFormatContext *s) av_log(s, AV_LOG_ERROR, "time base not set\n"); return -1; } - if(st->codec->width<=0 || st->codec->height<=0){ + if((st->codec->width<=0 || st->codec->height<=0) && !(s->oformat->flags & AVFMT_NODIMENSIONS)){ av_log(s, AV_LOG_ERROR, "dimensions not set\n"); return -1; } |