summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 20:08:43 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 20:08:43 +0100
commit7b53c2b29bb9fc77c9c0515446199ebe20cc0de0 (patch)
treec327745469bae04cbac2a89ed61efad8192afc7d
parent6d9c2c7423c15b1af1104fd1c3be7349b069f6c2 (diff)
downloadadvtime-7b53c2b29bb9fc77c9c0515446199ebe20cc0de0.tar.gz
advtime-7b53c2b29bb9fc77c9c0515446199ebe20cc0de0.tar.bz2
advtime-7b53c2b29bb9fc77c9c0515446199ebe20cc0de0.zip
video-decode: Make struct video_decode private again
-rw-r--r--src/advtime.c2
-rw-r--r--src/video_decode.c7
-rw-r--r--src/video_decode.h12
3 files changed, 7 insertions, 14 deletions
diff --git a/src/advtime.c b/src/advtime.c
index e5b0297..3cd8290 100644
--- a/src/advtime.c
+++ b/src/advtime.c
@@ -4,8 +4,6 @@
#include <stdint.h>
#include <unistd.h>
-#include <libavutil/rational.h>
-
#include "video_decode.h"
#include "util.h"
diff --git a/src/video_decode.c b/src/video_decode.c
index 6e3500a..955cd5d 100644
--- a/src/video_decode.c
+++ b/src/video_decode.c
@@ -15,6 +15,13 @@ struct video_frame_priv {
AVFrame *frame;
};
+struct video_decode {
+ AVFormatContext *fmt_ctx;
+ AVCodecContext *codec_ctx;
+ AVCodec *codec;
+ int stream;
+};
+
int
video_decode_init(struct video_decode **vd_out, char *file, int64_t ts)
{
diff --git a/src/video_decode.h b/src/video_decode.h
index 5b5d88c..40d2587 100644
--- a/src/video_decode.h
+++ b/src/video_decode.h
@@ -2,11 +2,6 @@
#define _VIDEO_DECODE_H_
#include <stdint.h>
-#include <libavutil/avutil.h>
-#include <libavutil/error.h>
-#include <libavformat/avformat.h>
-#include <libavcodec/avcodec.h>
-#include <libswscale/swscale.h>
struct video_decode;
struct video_frame {
@@ -15,13 +10,6 @@ struct video_frame {
int64_t dts;
};
-struct video_decode {
- AVFormatContext *fmt_ctx;
- AVCodecContext *codec_ctx;
- AVCodec *codec;
- int stream;
-};
-
int
video_decode_init(struct video_decode **vd, char *file, int64_t timestamp);