1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/dolby_e_parse: Use av_unreachable instead of av_assert0(0)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2021-10-03 15:51:32 +02:00
parent 22e6e4e914
commit 988e319b40

View File

@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "libavutil/avassert.h"
#include "get_bits.h" #include "get_bits.h"
#include "put_bits.h" #include "put_bits.h"
#include "dolby_e.h" #include "dolby_e.h"
@ -88,7 +89,7 @@ int ff_dolby_e_convert_input(DBEContext *s, int nb_words, int key)
AV_WB24(dst, AV_RB24(src) ^ key); AV_WB24(dst, AV_RB24(src) ^ key);
break; break;
default: default:
av_assert0(0); av_unreachable("ff_dolby_e_parse_header() only sets 16, 20, 24 and errors out otherwise");
} }
return init_get_bits(&s->gb, s->buffer, nb_words * s->word_bits); return init_get_bits(&s->gb, s->buffer, nb_words * s->word_bits);