summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-03-09 04:09:41 +0000
committerMike Melanson <mike@multimedia.cx>2004-03-09 04:09:41 +0000
commit9c4ee906d1cc4487be898342d07690f207e35f90 (patch)
tree9aaf002f89bb6231ca44e19ef529241249aa7408
parenta4940f08b672530a217518d1fbcea4c2ea2428db (diff)
downloadxine-lib-9c4ee906d1cc4487be898342d07690f207e35f90.tar.gz
xine-lib-9c4ee906d1cc4487be898342d07690f207e35f90.tar.bz2
hook up ffmpeg's Flash Video support
CVS patchset: 6237 CVS date: 2004/03/09 04:09:41
-rw-r--r--src/libffmpeg/video_decoder.c6
-rw-r--r--src/libffmpeg/xine_decoder.c3
-rw-r--r--src/xine-engine/buffer.h3
3 files changed, 8 insertions, 4 deletions
diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c
index 916bfc956..cbf080052 100644
--- a/src/libffmpeg/video_decoder.c
+++ b/src/libffmpeg/video_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_decoder.c,v 1.9 2004/03/03 20:09:13 mroi Exp $
+ * $Id: video_decoder.c,v 1.10 2004/03/09 04:09:41 tmmm Exp $
*
* xine video decoder plugin using ffmpeg
*
@@ -790,7 +790,8 @@ static const ff_codec_t ff_video_lookup[] = {
{BUF_VIDEO_MSZH, CODEC_ID_MSZH, "MSZH Video (ffmpeg)"},
{BUF_VIDEO_ASV1, CODEC_ID_ASV1, "ASV v1 Video (ffmpeg)"},
{BUF_VIDEO_ASV2, CODEC_ID_ASV2, "ASV v2 Video (ffmpeg)"},
- {BUF_VIDEO_ATIVCR1, CODEC_ID_VCR1, "ATI VCR-1 (ffmpeg)"} };
+ {BUF_VIDEO_ATIVCR1, CODEC_ID_VCR1, "ATI VCR-1 (ffmpeg)"},
+ {BUF_VIDEO_FLV1, CODEC_ID_FLV1, "Flash Video (ffmpeg)"} };
static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
ff_video_decoder_t *this = (ff_video_decoder_t *) this_gen;
@@ -1268,6 +1269,7 @@ static uint32_t supported_video_types[] = {
BUF_VIDEO_ASV1,
BUF_VIDEO_ASV2,
BUF_VIDEO_ATIVCR1,
+ BUF_VIDEO_FLV1,
0
};
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index d5d10d0fe..a5b4ffeef 100644
--- a/src/libffmpeg/xine_decoder.c
+++ b/src/libffmpeg/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.157 2004/02/03 04:27:18 tmmm Exp $
+ * $Id: xine_decoder.c,v 1.158 2004/03/09 04:09:41 tmmm Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -112,6 +112,7 @@ void avcodec_register_all(void)
register_avcodec(&asv1_decoder);
register_avcodec(&asv2_decoder);
register_avcodec(&vcr1_decoder);
+ register_avcodec(&flv_decoder);
}
void init_once_routine(void) {
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h
index 57fc47de1..255c867e8 100644
--- a/src/xine-engine/buffer.h
+++ b/src/xine-engine/buffer.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: buffer.h,v 1.135 2004/02/12 18:27:21 mroi Exp $
+ * $Id: buffer.h,v 1.136 2004/03/09 04:09:42 tmmm Exp $
*
*
* contents:
@@ -165,6 +165,7 @@ extern "C" {
#define BUF_VIDEO_ASV2 0x02490000
#define BUF_VIDEO_BITPLANE 0x024A0000 /* Amiga typical picture and animation format */
#define BUF_VIDEO_BITPLANE_BR1 0x024B0000 /* the same with Bytrun compression 1 */
+#define BUF_VIDEO_FLV1 0x024C0000
/* audio buffer types: (please keep in sync with buffer_types.c) */