mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 06:20:40 +00:00
fftools/ffmpeg_dec: drop useless abort_codec_experimental()
It does nothing beyond exit_program().
This commit is contained in:
parent
503c705634
commit
c8fa58430e
@ -27,11 +27,6 @@
|
|||||||
|
|
||||||
#include "ffmpeg.h"
|
#include "ffmpeg.h"
|
||||||
|
|
||||||
static void abort_codec_experimental(const AVCodec *c, int encoder)
|
|
||||||
{
|
|
||||||
exit_program(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat *pix_fmts)
|
static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat *pix_fmts)
|
||||||
{
|
{
|
||||||
InputStream *ist = s->opaque;
|
InputStream *ist = s->opaque;
|
||||||
@ -123,7 +118,7 @@ int dec_open(InputStream *ist)
|
|||||||
|
|
||||||
if ((ret = avcodec_open2(ist->dec_ctx, codec, &ist->decoder_opts)) < 0) {
|
if ((ret = avcodec_open2(ist->dec_ctx, codec, &ist->decoder_opts)) < 0) {
|
||||||
if (ret == AVERROR_EXPERIMENTAL)
|
if (ret == AVERROR_EXPERIMENTAL)
|
||||||
abort_codec_experimental(codec, 0);
|
exit_program(1);
|
||||||
|
|
||||||
av_log(ist, AV_LOG_ERROR, "Error while opening decoder: %s\n",
|
av_log(ist, AV_LOG_ERROR, "Error while opening decoder: %s\n",
|
||||||
av_err2str(ret));
|
av_err2str(ret));
|
||||||
|
Loading…
Reference in New Issue
Block a user