mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-04-18 00:20:21 +00:00
avformat/iamf: replace av_assert0(0) with av_unreachable
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
8665748584
commit
303fd126a8
3 changed files with 4 additions and 4 deletions
|
|
@ -916,7 +916,7 @@ static int audio_element_obu(void *s, IAMFContext *c, AVIOContext *pb, int len)
|
|||
if (ret < 0)
|
||||
goto fail;
|
||||
} else {
|
||||
av_assert0(0);
|
||||
av_unreachable("audio_element_type should have been checked above");
|
||||
}
|
||||
|
||||
c->audio_elements[c->nb_audio_elements++] = audio_element;
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ static int parameter_block_obu(AVFormatContext *s, IAMFDemuxContext *c,
|
|||
break;
|
||||
}
|
||||
default:
|
||||
av_assert0(0);
|
||||
av_unreachable("param_definition_type should have been checked in descriptor");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -290,7 +290,7 @@ static int parameter_block_obu(AVFormatContext *s, IAMFDemuxContext *c,
|
|||
c->recon_size = out_param_size;
|
||||
break;
|
||||
default:
|
||||
av_assert0(0);
|
||||
av_unreachable("param_definition_type should have been checked in descriptor");
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
|
|
|||
|
|
@ -1146,7 +1146,7 @@ static int write_parameter_block(const IAMFContext *iamf, AVIOContext *pb,
|
|||
break;
|
||||
}
|
||||
default:
|
||||
av_assert0(0);
|
||||
av_unreachable("param_definition_type should have been checked above");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue