[FFmpeg-devel] [PATCH] cafenc: fill in avg. packet size later if unknown

2021-07-12 Thread Roman Beranek
> This doesn't move the pointer back to the file end if par->block_align is set. > I think that's fine though, since the function writes the trailer, which > should > mean that nothing more needs to be written. Is it a convention to leave the pointer positioned at the end of the file? ___

[FFmpeg-devel] [PATCH] cafenc: fill in avg. packet size later if unknown

2021-07-12 Thread Roman Beranek
In-Reply-To: References: <20210710011006.3383868-1-roman.bera...@prusa3d.cz> Reply-To: FFmpeg development discussions and patches > This doesn't move the pointer back to the file end if par->block_align is set. > I think that's fine though, since the function writes the trailer, which > shoul

[FFmpeg-devel] [PATCH] cafenc: fill in avg. packet size later if unknown

2021-07-09 Thread Roman Beranek
Frame size of Opus stream was previously presumed here to be 960 samples (20ms), however sizes of 120, 240, 480, 1920, and 2880 are also allowed. It can also alter on a per-packet basis and even multiple frames may be present in a single packet according to the specification, for the sake of simpli