summaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2016-10-01 17:22:02 +0200
committerwm4 <nfxjfg@googlemail.com>2016-10-01 17:22:02 +0200
commitb2fea2fdee464edd736fc903ec3a4dc1e3a06e56 (patch)
tree54b7197f5fd4a8781c4568704bba135884291bb4 /libavcodec/internal.h
parent3c18188f9f3e5d7980c7998416a39f7efba307bf (diff)
downloadffmpeg-streaming-b2fea2fdee464edd736fc903ec3a4dc1e3a06e56.zip
ffmpeg-streaming-b2fea2fdee464edd736fc903ec3a4dc1e3a06e56.tar.gz
ffmpeg: move subframe warning to libavcodec
With the new decode API, doing this in ffmpeg.c is impractical. There was resistance against removing the warning, so put it into libavcodec. Not bothering with reducing the warning to verbose log level for subsequent wanrings. The warning should be rare, and only happen when developing new codecs for the old API. Includes a change suggested by Michael Niedermayer.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 000fe26..35b9630 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -173,6 +173,7 @@ typedef struct AVCodecInternal {
int buffer_pkt_valid; // encoding: packet without data can be valid
AVFrame *buffer_frame;
int draining_done;
+ int showed_multi_packet_warning;
} AVCodecInternal;
struct AVCodecDefault {
OpenPOWER on IntegriCloud