[FFmpeg-devel] [PATCH] QOA decoding support

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Wed Sep 27 16:05:07 EEST 2023


Nicolas George:
> Andreas Rheinhardt (12023-09-27):
>> Then you could simply reuse the code inside libavformat.
> 
> Do you finally support merging the libraries then?
> 
> Because otherwise, using from libavformat code for an individual
> component of libavcodec requires adding a new avpriv function.
> 

What I meant was: He shall write a simple function which reads from the
input, determines the size of the packet, allocates and reads the actual
packet (thereby avoiding memcpy's) and sets the codec parameters based
upon the input (changes may need to be propagated via side-data
updates). This is supposed to do what the parser does and it is supposed
to stay completely inside libavformat to be reused by e.g. the Wav
demuxer if needed. There is no need for a separate copy of this code
inside libavcodec, so whether the libraries are split or not is
irrelevant here.

- Andreas



More information about the ffmpeg-devel mailing list