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.
Unified · Split
| @@ -2757,7 +2757,7 @@ static int mov_write_header(AVFormatContext *s) · 2756 unmodified lines | ||
| 2757 | 2757 | } |
| 2758 | 2758 | /* set audio_vbr for compressed audio */ |
| 2759 | 2759 | if (av_get_bits_per_sample(st->codec->codec_id) < 8) { |
| 2760 | − if (!st->codec->frame_size) { | |
| 2760 | + if (!st->codec->frame_size && track->mode == MODE_MOV) { | |
| 2761 | 2761 | av_log(s, AV_LOG_ERROR, "track %d: codec frame size is not set\n", i); |
| 2762 | 2762 | goto error; |
| 2763 | 2763 | } |