mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
movenc: Don't require frame_size to be set for modes other than mov
The field frame_size isn't written to the output anywhere except than in mov. This facilitates stream copy from formats that don't set frame_size. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
6cb288290d
commit
9f9c45f4b6
@ -2757,7 +2757,7 @@ static int mov_write_header(AVFormatContext *s)
|
||||
}
|
||||
/* set audio_vbr for compressed audio */
|
||||
if (av_get_bits_per_sample(st->codec->codec_id) < 8) {
|
||||
if (!st->codec->frame_size) {
|
||||
if (!st->codec->frame_size && track->mode == MODE_MOV) {
|
||||
av_log(s, AV_LOG_ERROR, "track %d: codec frame size is not set\n", i);
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user