[FFmpeg-cvslog] fftools/ffmpeg_demux: replace abort() by av_assert0(0)

Anton Khirnov git at videolan.org
Fri Jan 19 19:05:09 EET 2024


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Dec 19 11:43:58 2023 +0100| [f8939bad1e9d25c30bc22e205376457c446c6734] | committer: Anton Khirnov

fftools/ffmpeg_demux: replace abort() by av_assert0(0)

This is the standard way to mark unreachable cases in a switch

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8939bad1e9d25c30bc22e205376457c446c6734
---

 fftools/ffmpeg_demux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 95af31e9ef..5d07b7153d 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1223,8 +1223,7 @@ static int ist_add(const OptionsContext *o, Demuxer *d, AVStream *st)
     case AVMEDIA_TYPE_ATTACHMENT:
     case AVMEDIA_TYPE_UNKNOWN:
         break;
-    default:
-        abort();
+    default: av_assert0(0);
     }
 
     ist->par = avcodec_parameters_alloc();



More information about the ffmpeg-cvslog mailing list