Merge commit 'f2b00a5372bfa1d82a8ab99cb8eafac8a9473494'
* commit 'f2b00a5372bfa1d82a8ab99cb8eafac8a9473494': movenc: Return a proper error code for invalid combinations Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		@@ -3655,7 +3655,7 @@ static int mov_write_header(AVFormatContext *s)
 | 
				
			|||||||
    if (!s->pb->seekable &&
 | 
					    if (!s->pb->seekable &&
 | 
				
			||||||
        (!(mov->flags & FF_MOV_FLAG_FRAGMENT) || mov->ism_lookahead)) {
 | 
					        (!(mov->flags & FF_MOV_FLAG_FRAGMENT) || mov->ism_lookahead)) {
 | 
				
			||||||
        av_log(s, AV_LOG_ERROR, "muxer does not support non seekable output\n");
 | 
					        av_log(s, AV_LOG_ERROR, "muxer does not support non seekable output\n");
 | 
				
			||||||
        return -1;
 | 
					        return AVERROR(EINVAL);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    mov_write_ftyp_tag(pb,s);
 | 
					    mov_write_ftyp_tag(pb,s);
 | 
				
			||||||
@@ -3673,7 +3673,7 @@ static int mov_write_header(AVFormatContext *s)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if (video_streams_nb != 1 || audio_streams_nb != 1 || other_streams_nb) {
 | 
					        if (video_streams_nb != 1 || audio_streams_nb != 1 || other_streams_nb) {
 | 
				
			||||||
            av_log(s, AV_LOG_ERROR, "PSP mode need one video and one audio stream\n");
 | 
					            av_log(s, AV_LOG_ERROR, "PSP mode need one video and one audio stream\n");
 | 
				
			||||||
            return -1;
 | 
					            return AVERROR(EINVAL);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        mov_write_uuidprof_tag(pb, s);
 | 
					        mov_write_uuidprof_tag(pb, s);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user