avformat muxer uses deprecated AVStream.codec
The avformat muxer elicits this warning from libavformat:
Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Example command line to reproduce:
cvlc --verbose=1 INFILE --sout '#std{mux=avformat{mux=matroska},access=file,dst=OUTFILE}'
It's not specific to matroska, the same message occurs for any avformat muxer. (The one I'm using is mux=avformat{mux=mpegts,options{mpegts_flags=+latm}}
, because mux=ts
has no option for LATM.)
I'm concerned that a future version of libavformat will break mux=avformat
if it hasn't migrated to codecpar.
Edited by Filip Roséen