From 0aa6a518ad1cd1715f9cff53c7c6684aefd0501c Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 20 Nov 2009 19:16:42 +0000 Subject: [PATCH] Add codec id for Flash screen codec v2 and hook it up in FLV demuxer Originally committed as revision 20563 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/avcodec.h | 1 + libavformat/flvdec.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7ffbd95955..ac3b803803 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -199,6 +199,7 @@ enum CodecID { CODEC_ID_DPX, CODEC_ID_MAD, CODEC_ID_FRWU, + CODEC_ID_FLASHSV2, /* various PCM "codecs" */ CODEC_ID_PCM_S16LE= 0x10000, diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 27062dcb97..2be5e2d689 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -82,6 +82,7 @@ static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, int flv_co switch(flv_codecid) { case FLV_CODECID_H263 : vcodec->codec_id = CODEC_ID_FLV1 ; break; case FLV_CODECID_SCREEN: vcodec->codec_id = CODEC_ID_FLASHSV; break; + case FLV_CODECID_SCREEN2: vcodec->codec_id = CODEC_ID_FLASHSV2; break; case FLV_CODECID_VP6 : vcodec->codec_id = CODEC_ID_VP6F ; case FLV_CODECID_VP6A : if(flv_codecid == FLV_CODECID_VP6A)