This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 303fd126a8be040f3121f5cb74bf369727059a67
Author:     James Almer <[email protected]>
AuthorDate: Sun Feb 8 20:54:36 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sun Feb 8 21:58:06 2026 -0300

    avformat/iamf: replace av_assert0(0) with av_unreachable
    
    Signed-off-by: James Almer <[email protected]>
---
 libavformat/iamf_parse.c  | 2 +-
 libavformat/iamf_reader.c | 4 ++--
 libavformat/iamf_writer.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c
index 2a2993b865..926b17e23f 100644
--- a/libavformat/iamf_parse.c
+++ b/libavformat/iamf_parse.c
@@ -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;
diff --git a/libavformat/iamf_reader.c b/libavformat/iamf_reader.c
index b620a44f19..418ab5d1c1 100644
--- a/libavformat/iamf_reader.c
+++ b/libavformat/iamf_reader.c
@@ -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;
diff --git a/libavformat/iamf_writer.c b/libavformat/iamf_writer.c
index e1820a7096..fcf7929830 100644
--- a/libavformat/iamf_writer.c
+++ b/libavformat/iamf_writer.c
@@ -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");
         }
     }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to