avformat/avformat: use the side data from AVStream.codecpar
Deprecate AVStream.side_data and its helpers in favor of the AVStream's codecpar.coded_side_data. This will considerably simplify the propagation of global side data to decoders and from encoders. Instead of having to do it inside packets, it will be available during init(). Global and frame specific side data will therefore be distinct. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
21d7cc6fa9
commit
5432d2aaca
27 changed files with 339 additions and 253 deletions
|
|
@ -431,11 +431,11 @@ static void dump_sidedata(void *ctx, const AVStream *st, const char *indent)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (st->nb_side_data)
|
||||
if (st->codecpar->nb_coded_side_data)
|
||||
av_log(ctx, AV_LOG_INFO, "%sSide data:\n", indent);
|
||||
|
||||
for (i = 0; i < st->nb_side_data; i++) {
|
||||
const AVPacketSideData *sd = &st->side_data[i];
|
||||
for (i = 0; i < st->codecpar->nb_coded_side_data; i++) {
|
||||
const AVPacketSideData *sd = &st->codecpar->coded_side_data[i];
|
||||
av_log(ctx, AV_LOG_INFO, "%s ", indent);
|
||||
|
||||
switch (sd->type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue