aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-05-05 20:56:52 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-05-05 20:56:52 +0000
commit211afadb26a2a18e18ec83327a17dcdcaa5801d7 (patch)
treecde3ba28456f0890bc7ac90278f146097117b995 /src/lib
parentb391060f336d8dd612a780f1b11ce66e31e406d8 (diff)
downloadusdx-211afadb26a2a18e18ec83327a17dcdcaa5801d7.tar.gz
usdx-211afadb26a2a18e18ec83327a17dcdcaa5801d7.tar.xz
usdx-211afadb26a2a18e18ec83327a17dcdcaa5801d7.zip
fix missing function
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2875 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg-0.8/avcodec.pas30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/ffmpeg-0.8/avcodec.pas b/src/lib/ffmpeg-0.8/avcodec.pas
index fc7e38fa..a933fa8c 100644
--- a/src/lib/ffmpeg-0.8/avcodec.pas
+++ b/src/lib/ffmpeg-0.8/avcodec.pas
@@ -3936,6 +3936,36 @@ function avcodec_default_execute2(s: PAVCodecContext; func: TExecuteFunc; arg: P
//FIXME func typedef
(**
+ * Initialize the AVCodecContext to use the given AVCodec. Prior to using this
+ * function the context has to be allocated.
+ *
+ * The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(),
+ * avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for
+ * retrieving a codec.
+ *
+ * @warning This function is not thread safe!
+ *
+ * @code
+ * avcodec_register_all();
+ * codec = avcodec_find_decoder(CODEC_ID_H264);
+ * if (!codec)
+ * exit(1);
+ *
+ * context = avcodec_alloc_context();
+ *
+ * if (avcodec_open(context, codec) < 0)
+ * exit(1);
+ * @endcode
+ *
+ * @param avctx The context which will be set up to use the given codec.
+ * @param codec The codec to use within the context.
+ * @return zero on success, a negative value on error
+ * @see avcodec_alloc_context, avcodec_find_decoder, avcodec_find_encoder
+ *)
+function avcodec_open(avctx: PAVCodecContext; codec: PAVCodec): cint;
+ cdecl; external av__codec;
+
+(**
* Decode the audio frame of size avpkt->size from avpkt->data into samples.
* Some decoders may support multiple frames in a single AVPacket, such
* decoders would then just decode the first frame. In this case,