mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
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
This commit is contained in:
parent
3566042a0d
commit
ab5a0175f5
3 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue