You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user