aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-01 04:13:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-01 19:51:58 +0200
commitb01d2a5533a99cbd803159a4a7f365d12a0bc5c5 (patch)
tree05064c3a7dd3e4e44104724ec25f52ede08696b0 /ffmpeg.h
parenta2dbf379f01b812ef96dc4d783025a1740572890 (diff)
downloadffmpeg-b01d2a5533a99cbd803159a4a7f365d12a0bc5c5.tar.gz
ffmpeg: Enable compute_edt only when the subtitles are used for a output stream instead of a filter
Fixes/works around Ticket3768 Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.h')
-rw-r--r--ffmpeg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffmpeg.h b/ffmpeg.h
index 6545286ad0..56eb66a6e8 100644
--- a/ffmpeg.h
+++ b/ffmpeg.h
@@ -243,7 +243,10 @@ typedef struct InputStream {
AVStream *st;
int discard; /* true if stream data should be discarded */
int user_set_discard;
- int decoding_needed; /* true if the packets must be decoded in 'raw_fifo' */
+ int decoding_needed; /* non zero if the packets must be decoded in 'raw_fifo', see DECODING_FOR_* */
+#define DECODING_FOR_OST 1
+#define DECODING_FOR_FILTER 2
+
AVCodecContext *dec_ctx;
AVCodec *dec;
AVFrame *decoded_frame;