diff options
author | methodus <methodus@web.de> | 2012-10-22 06:02:01 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-22 06:02:01 +0200 |
commit | 527026526fe2282cc9ca8ba74073978f403e2ead (patch) | |
tree | e76face90b84af10f12a1f47179b9153f29885ed /include/tools | |
parent | 40f78808fe37b42dd033b642322204e1bf3717ad (diff) | |
download | vdr-plugin-upnp-527026526fe2282cc9ca8ba74073978f403e2ead.tar.gz vdr-plugin-upnp-527026526fe2282cc9ca8ba74073978f403e2ead.tar.bz2 |
Seeking finally works even on TV sets.
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/codec.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/include/tools/codec.h b/include/tools/codec.h deleted file mode 100644 index 768fa15..0000000 --- a/include/tools/codec.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * codec.h - * - * Created on: 12.10.2012 - * Author: savop - */ - -#ifndef CODEC_H_ -#define CODEC_H_ - -#ifdef __cplusplus - #define __STDC_CONSTANT_MACROS - #ifdef _STDINT_H - #undef _STDINT_H - #endif - #include <stdint.h> -#endif - -extern "C" { -#include <libavcodec/avcodec.h> -#include <libavformat/avformat.h> -} - -#include <string> - -using namespace std; - -namespace upnp { - -namespace codec { - -class cFormatContext { -public: - cFormatContext(); - virtual ~cFormatContext(); - - bool Open(const string& file); - - const AVCodec* GetCodec(AVMediaType Type) const; - const AVCodecContext* GetCodecContext(AVMediaType Type) const; - const AVStream* GetStream(AVMediaType Type) const; - - AVFormatContext* operator*() const; -private: - AVFormatContext* formatCtx; -}; - -} - -} - - -#endif /* CODEC_H_ */ |