mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swf: Move shared table out of the header file
This commit is contained in:
parent
2804ba6a3b
commit
90f7e61769
@ -47,7 +47,7 @@ OBJS-$(CONFIG_AU_MUXER) += au.o
|
||||
OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o
|
||||
OBJS-$(CONFIG_AVI_MUXER) += avienc.o
|
||||
OBJS-$(CONFIG_AVISYNTH) += avisynth.o
|
||||
OBJS-$(CONFIG_AVM2_MUXER) += swfenc.o
|
||||
OBJS-$(CONFIG_AVM2_MUXER) += swfenc.o swf.o
|
||||
OBJS-$(CONFIG_AVS_DEMUXER) += avs.o vocdec.o voc.o
|
||||
OBJS-$(CONFIG_BETHSOFTVID_DEMUXER) += bethsoftvid.o
|
||||
OBJS-$(CONFIG_BFI_DEMUXER) += bfi.o
|
||||
@ -299,8 +299,8 @@ OBJS-$(CONFIG_SPDIF_MUXER) += spdif.o spdifenc.o
|
||||
OBJS-$(CONFIG_SRT_DEMUXER) += srtdec.o
|
||||
OBJS-$(CONFIG_SRT_MUXER) += rawenc.o
|
||||
OBJS-$(CONFIG_STR_DEMUXER) += psxstr.o
|
||||
OBJS-$(CONFIG_SWF_DEMUXER) += swfdec.o
|
||||
OBJS-$(CONFIG_SWF_MUXER) += swfenc.o
|
||||
OBJS-$(CONFIG_SWF_DEMUXER) += swfdec.o swf.o
|
||||
OBJS-$(CONFIG_SWF_MUXER) += swfenc.o swf.o
|
||||
OBJS-$(CONFIG_THP_DEMUXER) += thp.o
|
||||
OBJS-$(CONFIG_TIERTEXSEQ_DEMUXER) += tiertexseq.o
|
||||
OBJS-$(CONFIG_TMV_DEMUXER) += tmv.o
|
||||
|
29
libavformat/swf.c
Normal file
29
libavformat/swf.c
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Flash Compatible Streaming Format
|
||||
* Copyright (c) 2000 Fabrice Bellard
|
||||
* Copyright (c) 2003 Tinic Uro
|
||||
*
|
||||
* This file is part of Libav.
|
||||
*
|
||||
* Libav is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* Libav is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with Libav; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
const AVCodecTag ff_swf_codec_tags[] = {
|
||||
{ CODEC_ID_FLV1, 0x02 },
|
||||
{ CODEC_ID_VP6F, 0x04 },
|
||||
{ CODEC_ID_NONE, 0 },
|
||||
};
|
@ -78,10 +78,6 @@ typedef struct {
|
||||
AVCodecContext *audio_enc, *video_enc;
|
||||
} SWFContext;
|
||||
|
||||
static const AVCodecTag swf_codec_tags[] = {
|
||||
{ AV_CODEC_ID_FLV1, 0x02},
|
||||
{ AV_CODEC_ID_VP6F, 0x04},
|
||||
{ AV_CODEC_ID_NONE, 0},
|
||||
};
|
||||
extern const AVCodecTag ff_swf_codec_tags[];
|
||||
|
||||
#endif /* AVFORMAT_SWF_H */
|
||||
|
@ -120,7 +120,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
return -1;
|
||||
vst->id = ch_id;
|
||||
vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
vst->codec->codec_id = ff_codec_get_id(swf_codec_tags, avio_r8(pb));
|
||||
vst->codec->codec_id = ff_codec_get_id(ff_swf_codec_tags, avio_r8(pb));
|
||||
avpriv_set_pts_info(vst, 16, 256, swf->frame_rate);
|
||||
len -= 8;
|
||||
} else if (tag == TAG_STREAMHEAD || tag == TAG_STREAMHEAD2) {
|
||||
|
@ -347,7 +347,7 @@ static int swf_write_video(AVFormatContext *s,
|
||||
avio_wl16(pb, enc->width);
|
||||
avio_wl16(pb, enc->height);
|
||||
avio_w8(pb, 0);
|
||||
avio_w8(pb,ff_codec_get_tag(swf_codec_tags,enc->codec_id));
|
||||
avio_w8(pb,ff_codec_get_tag(ff_swf_codec_tags, enc->codec_id));
|
||||
put_swf_end_tag(s);
|
||||
|
||||
/* place the video object for the first time */
|
||||
|
Loading…
Reference in New Issue
Block a user