You've already forked FFmpeg
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:
@ -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);
|
||||||
|
Reference in New Issue
Block a user