ffmpegcolorspace: remove unused code/variables

This commit is contained in:
Stefan Kost 2009-02-26 15:53:10 +02:00
parent a47949b2ba
commit 60847e48d7
2 changed files with 2 additions and 8 deletions

View file

@ -139,12 +139,9 @@ static GstCaps *
gst_ffmpegcsp_transform_caps (GstBaseTransform * btrans,
GstPadDirection direction, GstCaps * caps)
{
GstFFMpegCsp *space;
GstCaps *template;
GstCaps *result;
space = GST_FFMPEGCSP (btrans);
template = gst_ffmpegcsp_codectype_to_caps (CODEC_TYPE_VIDEO, NULL);
result = gst_caps_intersect (caps, template);
gst_caps_unref (template);
@ -379,7 +376,6 @@ static gboolean
gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size)
{
GstFFMpegCsp *space = NULL;
GstStructure *structure = NULL;
AVCodecContext *ctx = NULL;
gboolean ret = TRUE;
@ -387,8 +383,6 @@ gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
g_assert (size);
space = GST_FFMPEGCSP (btrans);
structure = gst_caps_get_structure (caps, 0);
gst_structure_get_int (structure, "width", &width);
gst_structure_get_int (structure, "height", &height);

View file

@ -722,7 +722,7 @@ img_copy (AVPicture * dst, const AVPicture * src,
int pix_fmt, int width, int height)
{
int bwidth, bits, i;
PixFmtInfo *pf = get_pix_fmt_info (pix_fmt);
const PixFmtInfo *pf;
pf = get_pix_fmt_info (pix_fmt);
switch (pf->pixel_type) {
@ -2831,7 +2831,7 @@ get_alpha_info_pal8 (const AVPicture * src, int width, int height)
int
img_get_alpha_info (const AVPicture * src, int pix_fmt, int width, int height)
{
PixFmtInfo *pf = get_pix_fmt_info (pix_fmt);
const PixFmtInfo *pf;
int ret;
pf = get_pix_fmt_info (pix_fmt);