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, gst_ffmpegcsp_transform_caps (GstBaseTransform * btrans,
GstPadDirection direction, GstCaps * caps) GstPadDirection direction, GstCaps * caps)
{ {
GstFFMpegCsp *space;
GstCaps *template; GstCaps *template;
GstCaps *result; GstCaps *result;
space = GST_FFMPEGCSP (btrans);
template = gst_ffmpegcsp_codectype_to_caps (CODEC_TYPE_VIDEO, NULL); template = gst_ffmpegcsp_codectype_to_caps (CODEC_TYPE_VIDEO, NULL);
result = gst_caps_intersect (caps, template); result = gst_caps_intersect (caps, template);
gst_caps_unref (template); gst_caps_unref (template);
@ -379,7 +376,6 @@ static gboolean
gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps, gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size) guint * size)
{ {
GstFFMpegCsp *space = NULL;
GstStructure *structure = NULL; GstStructure *structure = NULL;
AVCodecContext *ctx = NULL; AVCodecContext *ctx = NULL;
gboolean ret = TRUE; gboolean ret = TRUE;
@ -387,8 +383,6 @@ gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
g_assert (size); g_assert (size);
space = GST_FFMPEGCSP (btrans);
structure = gst_caps_get_structure (caps, 0); structure = gst_caps_get_structure (caps, 0);
gst_structure_get_int (structure, "width", &width); gst_structure_get_int (structure, "width", &width);
gst_structure_get_int (structure, "height", &height); 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 pix_fmt, int width, int height)
{ {
int bwidth, bits, i; int bwidth, bits, i;
PixFmtInfo *pf = get_pix_fmt_info (pix_fmt); const PixFmtInfo *pf;
pf = get_pix_fmt_info (pix_fmt); pf = get_pix_fmt_info (pix_fmt);
switch (pf->pixel_type) { switch (pf->pixel_type) {
@ -2831,7 +2831,7 @@ get_alpha_info_pal8 (const AVPicture * src, int width, int height)
int int
img_get_alpha_info (const AVPicture * src, int pix_fmt, int width, int height) 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; int ret;
pf = get_pix_fmt_info (pix_fmt); pf = get_pix_fmt_info (pix_fmt);