summaryrefslogtreecommitdiff
path: root/libavcodec/thread.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-11-24 01:50:05 +0100
committerJanne Grunau <janne-libav@jannau.net>2011-11-25 08:25:12 +0100
commit117e2a30f254820e0fd4e4d5d9fbab757f17590f (patch)
tree1b57b621ffd909413c66064c625d9aa08ebbac28 /libavcodec/thread.h
parentd14d4d982cca55b34092fb71204b9a3f3749acd7 (diff)
frame-mt: return consumed packet size in ff_thread_decode_frame
This is required to fulfill avcodec_decode_video2() promise to return the number of consumed bytes on success.
Diffstat (limited to 'libavcodec/thread.h')
-rw-r--r--libavcodec/thread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/thread.h b/libavcodec/thread.h
index 401c4d25a8..dfd261df1c 100644
--- a/libavcodec/thread.h
+++ b/libavcodec/thread.h
@@ -42,6 +42,9 @@ void ff_thread_flush(AVCodecContext *avctx);
* Submits a new frame to a decoding thread.
* Returns the next available frame in picture. *got_picture_ptr
* will be 0 if none is available.
+ * The return value on success is the size of the consumed packet for
+ * compatiblity with avcodec_decode_video2(). This means the decoder
+ * has to consume the full packet.
*
* Parameters are the same as avcodec_decode_video2().
*/