forked from Jackarain/avplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jack <[email protected]>
- Loading branch information
Showing
6 changed files
with
69 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// | ||
// unkown_demux.h | ||
// ~~~~~~~~~~~~~~ | ||
// generic_demux.h | ||
// ~~~~~~~~~~~~~~~ | ||
// | ||
// Copyright (c) 2011 Jack ([email protected]) | ||
// | ||
|
||
#ifndef __UNKOWN_DEMUX_H__ | ||
#define __UNKOWN_DEMUX_H__ | ||
#ifndef __GENERIC_DEMUX_H__ | ||
#define __GENERIC_DEMUX_H__ | ||
|
||
#if defined(_MSC_VER) && (_MSC_VER >= 1020) | ||
# pragma once | ||
|
@@ -15,17 +15,17 @@ | |
#include "demuxer.h" | ||
#include "globals.h" | ||
|
||
struct unkown_demux_data | ||
struct generic_demux_data | ||
{ | ||
std::string file_name; // 文件名. | ||
int type; // 数据类型. | ||
}; | ||
|
||
class unkown_demux : public demuxer | ||
class generic_demux : public demuxer | ||
{ | ||
public: | ||
unkown_demux(void); | ||
virtual ~unkown_demux(void); | ||
generic_demux(void); | ||
virtual ~generic_demux(void); | ||
|
||
public: | ||
// 打开demuxer, 参数为any, 以传入任意参数. | ||
|
@@ -92,7 +92,7 @@ class unkown_demux : public demuxer | |
|
||
protected: | ||
// 参数信息. | ||
unkown_demux_data m_unkown_demux_data; | ||
generic_demux_data m_generic_demux_data; | ||
|
||
// 使用FFmpeg的AVFormatContext来读取AVPacket. | ||
AVFormatContext *m_format_ctx; | ||
|
@@ -113,4 +113,4 @@ class unkown_demux : public demuxer | |
bool m_abort; | ||
}; | ||
|
||
#endif // __UNKOWN_DEMUX_H__ | ||
#endif // __GENERIC_DEMUX_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters