Changeset 079a1818dc58b9dc81ca92b5217da2a8d599572f

Show
Ignore:
Timestamp:
29/01/08 14:34:30 (10 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1201613670 +0000
git-parent:

[c4802454727f939844aaf4d44e49e7fa7c31f32b]

git-author:
Rafaël Carré <funman@videolan.org> 1201613670 +0000
Message:

codecs & packetizers: fix warnings

use size_t instead of int to represent sizes
removes unused parameters from:

block_BytestreamInit()
mpeg4_audio/LOASSyncInfo()
cinepak/cinepak_Getv1()
speex/SendPacket()
subsass/ParseColor()
ffmpeg/postprocess/InitPostproc() & PostprocPict?()
dvbsub/YuvaYuvp() & encode_pixel_line_{2,4,8}bp()
faad/DoReordering()

vlc_block_helper.h:

use size_t, removes unused parameter from block_BytestreamInit()

struct filter_t:

removes unused parameters from pf_picture_link() & pf_picture_unlink()


cmml: fix a segfault (p_item isn't an input item, despite the name) present for some months, proving that nobody did use that code ?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_block_helper.h

    rfbf4c80 r079a181  
    3535    block_t             *p_chain; 
    3636    block_t             *p_block; 
    37     int                 i_offset; 
     37    size_t              i_offset; 
    3838 
    3939} block_bytestream_t; 
    40  
    41 #define block_BytestreamInit( a ) __block_BytestreamInit( VLC_OBJECT(a) ) 
    4240 
    4341/***************************************************************************** 
    4442 * block_bytestream_t management 
    4543 *****************************************************************************/ 
    46 static inline block_bytestream_t __block_BytestreamInit( vlc_object_t *p_obj
     44static inline block_bytestream_t block_BytestreamInit( void
    4745{ 
    4846    block_bytestream_t bytestream; 
     
    217215 
    218216static inline int block_WaitBytes( block_bytestream_t *p_bytestream, 
    219                                    int i_data ) 
     217                                   size_t i_data ) 
    220218{ 
    221219    block_t *p_block; 
    222     int i_offset, i_copy, i_size; 
     220    size_t i_offset, i_copy, i_size; 
    223221 
    224222    /* Check we have that much data */ 
     
    245243 
    246244static inline int block_SkipBytes( block_bytestream_t *p_bytestream, 
    247                                    int i_data ) 
     245                                   size_t i_data ) 
    248246{ 
    249247    block_t *p_block; 
    250     int i_offset, i_copy; 
     248    size_t i_offset, i_copy; 
    251249 
    252250    /* Check we have that much data */ 
     
    276274 
    277275static inline int block_PeekBytes( block_bytestream_t *p_bytestream, 
    278                                    uint8_t *p_data, int i_data ) 
     276                                   uint8_t *p_data, size_t i_data ) 
    279277{ 
    280278    block_t *p_block; 
    281     int i_offset, i_copy, i_size; 
     279    size_t i_offset, i_copy, i_size; 
    282280 
    283281    /* Check we have that much data */ 
     
    326324 
    327325static inline int block_GetBytes( block_bytestream_t *p_bytestream, 
    328                                   uint8_t *p_data, int i_data ) 
     326                                  uint8_t *p_data, size_t i_data ) 
    329327{ 
    330328    block_t *p_block; 
    331     int i_offset, i_copy, i_size; 
     329    size_t i_offset, i_copy, i_size; 
    332330 
    333331    /* Check we have that much data */ 
     
    380378 
    381379static inline int block_PeekOffsetBytes( block_bytestream_t *p_bytestream, 
    382     int i_peek_offset, uint8_t *p_data, int i_data ) 
     380    size_t i_peek_offset, uint8_t *p_data, size_t i_data ) 
    383381{ 
    384382    block_t *p_block; 
    385     int i_offset, i_copy, i_size; 
     383    size_t i_offset, i_copy, i_size; 
    386384 
    387385    /* Check we have that much data */ 
     
    444442 
    445443static inline int block_FindStartcodeFromOffset( 
    446     block_bytestream_t *p_bytestream, int *pi_offset, 
     444    block_bytestream_t *p_bytestream, size_t *pi_offset, 
    447445    uint8_t *p_startcode, int i_startcode_length ) 
    448446{ 
    449447    block_t *p_block, *p_block_backup = 0; 
    450     int i_size, i_offset, i_offset_backup = 0; 
     448    int i_size = 0; 
     449    size_t i_offset, i_offset_backup = 0; 
    451450    int i_caller_offset_backup = 0, i_match; 
    452451 
     
    469468     * We first look for an occurrence of the 1st startcode byte and 
    470469     * if found, we do a more thorough check. */ 
    471     i_size = p_block->i_buffer + i_size
     470    i_size += p_block->i_buffer
    472471    *pi_offset -= i_size; 
    473472    i_match = 0; 
  • include/vlc_filter.h

    rcf9e0c8 r079a181  
    8282    picture_t     * ( * pf_vout_buffer_new) ( filter_t * ); 
    8383    void            ( * pf_vout_buffer_del) ( filter_t *, picture_t * ); 
    84     void            ( * pf_picture_link)    ( filter_t *, picture_t * ); 
    85     void            ( * pf_picture_unlink)  ( filter_t *, picture_t * ); 
     84    void            ( * pf_picture_link)    ( picture_t * ); 
     85    void            ( * pf_picture_unlink)  ( picture_t * ); 
    8686 
    8787    /* SPU output callbacks */ 
  • modules/codec/a52.c

    r99fab90 r079a181  
    134134    aout_DateSet( &p_sys->end_date, 0 ); 
    135135 
    136     p_sys->bytestream = block_BytestreamInit( p_dec ); 
     136    p_sys->bytestream = block_BytestreamInit(); 
    137137    p_sys->i_input_rate = INPUT_RATE_DEFAULT; 
    138138 
  • modules/codec/adpcm.c

    r99fab90 r079a181  
    6969    enum adpcm_codec_e codec; 
    7070 
    71     int                 i_block; 
    72     int                 i_samplesperblock; 
     71    size_t              i_block; 
     72    size_t              i_samplesperblock; 
    7373 
    7474    audio_date_t        end_date; 
     
    619619    decoder_sys_t *p_sys  = p_dec->p_sys; 
    620620    adpcm_ima_wav_channel_t channel[2]; 
    621     int                     i_nibbles; 
     621    size_t                  i_nibbles; 
    622622    int                     b_stereo; 
    623623 
  • modules/codec/araw.c

    r99fab90 r079a181  
    14641464static void EncoderClose ( vlc_object_t *p_this ) 
    14651465{ 
    1466     return
     1466    VLC_UNUSED(p_this)
    14671467} 
    14681468 
  • modules/codec/cc.c

    ra0e5fe3 r079a181  
    227227static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) 
    228228{ 
    229     decoder_sys_t *p_sys = p_dec->p_sys; 
    230  
    231229    if( pp_block && *pp_block ) 
    232230    { 
  • modules/codec/cc.h

    r418f8da r079a181  
    6767static inline void cc_Exit( cc_data_t *c ) 
    6868{ 
     69    VLC_UNUSED(c); 
    6970    return; 
    7071} 
  • modules/codec/cdg.c

    r99fab90 r079a181  
    33 ***************************************************************************** 
    44 * Copyright (C) 2007 Laurent Aimar 
    5  * $Id:
     5 * $Id
    66 * 
    77 * Authors: Laurent Aimar <fenrir # via.ecp.fr> 
     
    195195{ 
    196196    const int i_color = p_data[0]&0x0f; 
     197#if 0 
    197198    const int i_repeat= p_data[1]&0x0f; 
    198  
     199#endif 
    199200    /* if i_repeat > 0 we could ignore it if we have a reliable stream */ 
    200201    ScreenFill( p_cdg, 0, 0, CDG_SCREEN_WIDTH, CDG_SCREEN_HEIGHT, i_color ); 
  • modules/codec/cinepak.c

    r99fab90 r079a181  
    279279static void cinepak_Getv4( cinepak_context_t *p_context, 
    280280                           int i_strip, int i_x, int i_y, 
    281                            int i_x2, int i_y2, uint8_t *p_data ) 
     281                           uint8_t *p_data ) 
    282282{ 
    283283    uint8_t i_index[4]; 
     
    326326static void cinepak_Getv1( cinepak_context_t *p_context, 
    327327                           int i_strip, int i_x,  int i_y, 
    328                            int i_x2, int i_y2, uint8_t *p_data ) 
     328                           uint8_t *p_data ) 
    329329{ 
    330330    uint8_t i_index; 
     
    588588                                           i_strip_x1 + i_x, 
    589589                                           i_strip_y1 + i_y, 
    590                                            i_strip_x2, i_strip_y2, 
    591590                                           p_data ); 
    592591                            p_data += 4; 
     
    599598                                           i_strip_x1 + i_x, 
    600599                                           i_strip_y1 + i_y, 
    601                                            i_strip_x2, i_strip_y2, 
    602600                                           p_data ); 
    603601                            p_data++; 
     
    647645                                               i_strip_x1 + i_x, 
    648646                                               i_strip_y1 + i_y, 
    649                                                i_strip_x2, i_strip_y2, 
    650647                                               p_data ); 
    651648                                p_data += 4; 
     
    659656                                               i_strip_x1 + i_x, 
    660657                                               i_strip_y1 + i_y, 
    661                                                i_strip_x2, i_strip_y2, 
    662658                                               p_data ); 
    663659                                p_data++; 
     
    685681                                   i_strip_x1 + i_x, 
    686682                                   i_strip_y1 + i_y, 
    687                                    i_strip_x2, i_strip_y2, 
    688683                                   p_data ); 
    689684                    p_data++; 
  • modules/codec/cmml/history.c

    r99fab90 r079a181  
    120120        else 
    121121        { 
    122             char *psz_uri = input_item_GetURI( p_item ); 
    123122            fprintf( stderr, "HISTORY: [%d] %p (%p->%s)\n", i, p_item, 
    124                      psz_uri, psz_uri ); 
    125             free( psz_uri ); 
     123                     p_item->psz_uri, p_item->psz_uri ); 
    126124        } 
    127125    } 
  • modules/codec/cmml/intf.c

    r99fab90 r079a181  
    7979 * Local prototypes. 
    8080 *****************************************************************************/ 
     81 
     82int          E_(OpenIntf)               ( vlc_object_t * ); 
     83void         E_(CloseIntf)              ( vlc_object_t * ); 
     84 
    8185static int   InitThread                 ( intf_thread_t * ); 
    8286static int   MouseEvent                 ( vlc_object_t *, char const *, 
     
    401405                       vlc_value_t oldval, vlc_value_t newval, void *p_data ) 
    402406{ 
     407    VLC_UNUSED(p_this); VLC_UNUSED(psz_var); 
     408    VLC_UNUSED(oldval); VLC_UNUSED(newval); 
     409    VLC_UNUSED(p_data); 
    403410    /* TODO: handle mouse clicks on the anchor text */ 
    404411 
     
    412419                       vlc_value_t oldval, vlc_value_t newval, void *p_data ) 
    413420{ 
     421    VLC_UNUSED(p_this); VLC_UNUSED(psz_var); 
     422    VLC_UNUSED(oldval); VLC_UNUSED(newval); 
    414423    intf_thread_t *p_intf = (intf_thread_t *)p_data; 
    415424    vlc_mutex_lock( &p_intf->change_lock ); 
     
    577586    return psz_return_value; 
    578587#else 
     588    VLC_UNUSED(p_intf); 
    579589    void *p; 
    580590 
     
    617627                    vlc_value_t oldval, vlc_value_t newval, void *p_data ) 
    618628{ 
     629    VLC_UNUSED(p_this); VLC_UNUSED(psz_var); 
     630    VLC_UNUSED(oldval); VLC_UNUSED(newval); 
    619631    intf_thread_t *p_intf = (intf_thread_t *) p_data; 
    620632    GoBack( p_intf ); 
     
    626638                       vlc_value_t oldval, vlc_value_t newval, void *p_data ) 
    627639{ 
     640    VLC_UNUSED(p_this); VLC_UNUSED(psz_var); 
     641    VLC_UNUSED(oldval); VLC_UNUSED(newval); 
    628642    intf_thread_t *p_intf = (intf_thread_t *) p_data; 
    629643    GoForward( p_intf ); 
     
    636650                          void *p_data ) 
    637651{ 
     652    VLC_UNUSED(p_this); VLC_UNUSED(psz_var); 
     653    VLC_UNUSED(oldval); VLC_UNUSED(newval); 
    638654    intf_thread_t *p_intf = (intf_thread_t *) p_data; 
    639655    FollowAnchor( p_intf ); 
  • modules/codec/cmml/xarray.c

    r99fab90 r079a181  
    3333#include "xarray.h" 
    3434 
     35/* local prototypes */ 
     36XSTATIC XArray * xarray_New (unsigned int); 
     37 
     38 
    3539#define XARRAY_ASSERT_NOT_NULL(xarray) \ 
    3640    { \ 
     
    4044#define XARRAY_BOUNDS_CHECK(xarray, index) \ 
    4145    { \ 
    42         if (index < 0) \ 
    43             return XARRAY_ENEGATIVEINDEX; \ 
    44         else if (xarray->last_valid_element != -1 && \ 
     46        if (xarray->last_valid_element != -1 && \ 
    4547                 (int) index > xarray->last_valid_element) \ 
    4648            return XARRAY_EINDEXTOOLARGE; \ 
     
    6264    if (new_xarray == NULL) return NULL; 
    6365 
    64     if (initial_size_hint <= 0) 
     66    if (initial_size_hint == 0) 
    6567        initial_size = XARRAY_DEFAULT_SIZE; 
    6668    else 
  • modules/codec/cmml/xtag.c

    r99fab90 r079a181  
    8282}; 
    8383 
     84XTag * xtag_free (XTag * xtag); 
     85XTag * xtag_new_parse (const char * s, int n); 
     86char * xtag_get_name (XTag * xtag); 
     87char * xtag_get_pcdata (XTag * xtag); 
     88char * xtag_get_attribute (XTag * xtag, char * attribute); 
     89XTag * xtag_first_child (XTag * xtag, char * name); 
     90XTag * xtag_next_child (XTag * xtag, char * name); 
     91int    xtag_snprint (char * buf, int n, XTag * xtag); 
     92 
    8493/* Character classes */ 
    8594#define X_NONE           0 
  • modules/codec/cmml/xurl.c

    r99fab90 r079a181  
    4040#endif 
    4141 
     42char        *XURL_FindQuery             ( char *psz_url ); 
    4243static char *XURL_FindHostname          ( char *psz_url ); 
    4344static char *XURL_FindPath              ( char *psz_url ); 
     
    259260} 
    260261 
    261  
    262262char *XURL_FindQuery( char *psz_url ) 
    263263{ 
  • modules/codec/cvdsub.c

    r99fab90 r079a181  
    8181  block_t  *p_spu;   /* Bytes of the packet. */ 
    8282 
    83   int     i_spu_size;     /* goal for subtitle_data_pos while gathering, 
     83  size_t   i_spu_size;     /* goal for subtitle_data_pos while gathering, 
    8484                             size of used subtitle_data later */ 
    8585 
    8686  uint16_t i_image_offset;      /* offset from subtitle_data to compressed 
    8787                                   image data */ 
    88   int i_image_length;           /* size of the compressed image data */ 
    89   int first_field_offset;       /* offset of even raster lines */ 
    90   int second_field_offset;      /* offset of odd raster lines */ 
    91   int metadata_offset;          /* offset to data describing the image */ 
    92   int metadata_length;          /* length of metadata */ 
     88  size_t i_image_length;           /* size of the compressed image data */ 
     89  size_t first_field_offset;       /* offset of even raster lines */ 
     90  size_t second_field_offset;      /* offset of odd raster lines */ 
     91  size_t metadata_offset;          /* offset to data describing the image */ 
     92  size_t metadata_length;          /* length of metadata */ 
    9393 
    9494  mtime_t i_duration;   /* how long to display the image, 0 stands 
  • modules/codec/dmo/buffer.c

    r99fab90 r079a181  
    109109 
    110110    if( !ppBuffer && !pcbLength ) return E_POINTER; 
    111     if( ppBuffer ) *ppBuffer = p_mb->p_block->p_buffer; 
     111    if( ppBuffer ) *ppBuffer = (char*)p_mb->p_block->p_buffer; 
    112112    if( pcbLength ) *pcbLength = p_mb->p_block->i_buffer; 
    113113    return S_OK; 
  • modules/codec/dmo/dmo.c

    r99fab90 r079a181  
    5555#ifdef LOADER 
    5656/* Not Needed */ 
    57 long CoInitialize( void *pvReserved ) { return -1; } 
     57long CoInitialize( void *pvReserved ) { VLC_UNUSED(pvReserved); return -1; } 
    5858void CoUninitialize( void ) { } 
    5959 
  • modules/codec/dts.c

    r99fab90 r079a181  
    134134    aout_DateSet( &p_sys->end_date, 0 ); 
    135135 
    136     p_sys->bytestream = block_BytestreamInit( p_dec ); 
     136    p_sys->bytestream = block_BytestreamInit(); 
    137137 
    138138    /* Set output properties */ 
  • modules/codec/dvbsub.c

    r99fab90 r079a181  
    17011701 *        into VLC_FOURCC('Y','U','V','P') 
    17021702 */ 
    1703 static subpicture_t *YuvaYuvp( encoder_t *p_enc, subpicture_t *p_subpic ) 
     1703static subpicture_t *YuvaYuvp( subpicture_t *p_subpic ) 
    17041704{ 
    17051705    subpicture_region_t *p_region = NULL; 
     
    19211921    if( p_region->fmt.i_chroma == VLC_FOURCC('Y','U','V','A') ) 
    19221922    { 
    1923         p_temp = YuvaYuvp( p_enc, p_subpic ); 
     1923        p_temp = YuvaYuvp( p_subpic ); 
    19241924        if( !p_temp ) 
    19251925        { 
     
    23192319} 
    23202320 
    2321 static void encode_pixel_line_2bp( encoder_t *p_enc, bs_t *s, 
    2322                                    subpicture_region_t *p_region, 
     2321static void encode_pixel_line_2bp( bs_t *s, subpicture_region_t *p_region, 
    23232322                                   int i_line ); 
    2324 static void encode_pixel_line_4bp( encoder_t *p_enc, bs_t *s, 
    2325                                    subpicture_region_t *p_region, 
     2323static void encode_pixel_line_4bp( bs_t *s, subpicture_region_t *p_region, 
    23262324                                   int i_line ); 
    2327 static void encode_pixel_line_8bp( encoder_t *p_enc, bs_t *s, 
    2328                                    subpicture_region_t *p_region, 
     2325static void encode_pixel_line_8bp( bs_t *s, subpicture_region_t *p_region, 
    23292326                                   int i_line ); 
    23302327static void encode_pixel_data( encoder_t *p_enc, bs_t *s, 
     
    23482345        case 4: 
    23492346            bs_write( s, 8, 0x10 ); /* 2 bit/pixel code string */ 
    2350             encode_pixel_line_2bp( p_enc, s, p_region, i_line ); 
     2347            encode_pixel_line_2bp( s, p_region, i_line ); 
    23512348            break; 
    23522349 
    23532350        case 16: 
    23542351            bs_write( s, 8, 0x11 ); /* 4 bit/pixel code string */ 
    2355             encode_pixel_line_4bp( p_enc, s, p_region, i_line ); 
     2352            encode_pixel_line_4bp( s, p_region, i_line ); 
    23562353            break; 
    23572354 
    23582355        case 256: 
    23592356            bs_write( s, 8, 0x12 ); /* 8 bit/pixel code string */ 
    2360             encode_pixel_line_8bp( p_enc, s, p_region, i_line ); 
     2357            encode_pixel_line_8bp( s, p_region, i_line ); 
    23612358            break; 
    23622359 
     
    23712368} 
    23722369 
    2373 static void encode_pixel_line_2bp( encoder_t *p_enc, bs_t *s, 
    2374                                    subpicture_region_t *p_region, 
     2370static void encode_pixel_line_2bp( bs_t *s, subpicture_region_t *p_region, 
    23752371                                   int i_line ) 
    23762372{ 
     
    24632459} 
    24642460 
    2465 static void encode_pixel_line_4bp( encoder_t *p_enc, bs_t *s, 
    2466                                    subpicture_region_t *p_region, 
     2461static void encode_pixel_line_4bp( bs_t *s, subpicture_region_t *p_region, 
    24672462                                   int i_line ) 
    24682463{ 
     
    25622557} 
    25632558 
    2564 static void encode_pixel_line_8bp( encoder_t *p_enc, bs_t *s, 
    2565                                    subpicture_region_t *p_region, 
     2559static void encode_pixel_line_8bp( bs_t *s, subpicture_region_t *p_region, 
    25662560                                   int i_line ) 
    25672561{ 
  • modules/codec/faad.c

    r99fab90 r079a181  
    5252 ****************************************************************************/ 
    5353static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** ); 
    54 static void DoReordering( decoder_t *, uint32_t *, uint32_t *, int, int, 
    55                           uint32_t * ); 
     54static void DoReordering( uint32_t *, uint32_t *, int, int, uint32_t * ); 
    5655 
    5756#define MAX_CHANNEL_POSITIONS 9 
     
    6867    uint8_t *p_buffer; 
    6968    int     i_buffer; 
    70     int     i_buffer_size; 
     69    size_t  i_buffer_size; 
    7170 
    7271    /* Channel positions of the current stream (for re-ordering) */ 
     
    407406            (frame.samples / frame.channels) * p_sys->i_input_rate / INPUT_RATE_DEFAULT ); 
    408407 
    409         DoReordering( p_dec, (uint32_t *)p_out->p_buffer, samples, 
     408        DoReordering( (uint32_t *)p_out->p_buffer, samples, 
    410409                      frame.samples / frame.channels, frame.channels, 
    411410                      p_sys->pi_channel_positions ); 
     
    442441 *   different from the aac one). 
    443442 *****************************************************************************/ 
    444 static void DoReordering( decoder_t *p_dec, 
    445                           uint32_t *p_out, uint32_t *p_in, int i_samples, 
     443static void DoReordering( uint32_t *p_out, uint32_t *p_in, int i_samples, 
    446444                          int i_nb_channels, uint32_t *pi_chan_positions ) 
    447445{ 
  • modules/codec/fake.c

    r99fab90 r079a181  
    389389                         void *p_data ) 
    390390{ 
     391    VLC_UNUSED(p_this); VLC_UNUSED(oldval); 
    391392    decoder_t *p_dec = (decoder_t *)p_data; 
    392393 
  • modules/codec/ffmpeg/audio.c

    r99fab90 r079a181  
    284284        return NULL; 
    285285    } 
    286     else if( i_used > p_block->i_buffer ) 
     286    else if( (size_t)i_used > p_block->i_buffer ) 
    287287    { 
    288288        i_used = p_block->i_buffer; 
  • modules/codec/ffmpeg/chroma.c

    re189922 r079a181  
    248248static void video_del_buffer_filter( filter_t *p_filter, picture_t *p_pic ) 
    249249{ 
    250     (void)p_filter; 
    251     if( p_pic && p_pic->p_data_orig ) free( p_pic->p_data_orig ); 
    252     if( p_pic ) free( p_pic ); 
     250    VLC_UNUSED(p_filter); 
     251    if( p_pic ) 
     252    { 
     253        free( p_pic->p_data_orig ); 
     254        free( p_pic ); 
     255    } 
    253256} 
    254257 
  • modules/codec/ffmpeg/encoder.c

    r99da87a r079a181  
    164164{ 44100, 48000, 32000, 22050, 24000, 16000 }; 
    165165 
    166 static const int16_t mpeg4_default_intra_matrix[64] = { 
     166static const uint16_t mpeg4_default_intra_matrix[64] = { 
    167167  8, 17, 18, 19, 21, 23, 25, 27, 
    168168 17, 18, 19, 21, 23, 25, 27, 28, 
     
    175175}; 
    176176 
    177 static const int16_t mpeg4_default_non_intra_matrix[64] = { 
     177static const uint16_t mpeg4_default_non_intra_matrix[64] = { 
    178178 16, 17, 18, 19, 20, 21, 22, 23, 
    179179 17, 18, 19, 20, 21, 22, 23, 24, 
  • modules/codec/ffmpeg/ffmpeg.h

    r9d20efb r079a181  
    8080/* Postprocessing module */ 
    8181void *E_(OpenPostproc)( decoder_t *, vlc_bool_t * ); 
    82 int E_(InitPostproc)( decoder_t *, void *, int, int, int ); 
    83 int E_(PostprocPict)( decoder_t *, void *, picture_t *, struct AVFrame * ); 
     82int E_(InitPostproc)( void *, int, int, int ); 
     83int E_(PostprocPict)( void *, picture_t *, struct AVFrame * ); 
    8484void E_(ClosePostproc)( decoder_t *, void * ); 
    8585 
  • modules/codec/ffmpeg/postprocess.c

    r99fab90 r079a181  
    123123 * InitPostproc: 
    124124 *****************************************************************************/ 
    125 int E_(InitPostproc)( decoder_t *p_dec, void *p_data, 
    126                       int i_width, int i_height, int pix_fmt ) 
     125int E_(InitPostproc)( void *p_data, int i_width, int i_height, int pix_fmt ) 
    127126{ 
    128127    video_postproc_sys_t *p_sys = (video_postproc_sys_t *)p_data; 
     
    174173 * PostprocPict: 
    175174 *****************************************************************************/ 
    176 int E_(PostprocPict)( decoder_t *p_dec, void *p_data, 
    177                       picture_t *p_pic, AVFrame *p_ff_pic ) 
     175int E_(PostprocPict)( void *p_data, picture_t *p_pic, AVFrame *p_ff_pic ) 
    178176{ 
    179177    video_postproc_sys_t *p_sys = (video_postproc_sys_t *)p_data; 
     
    225223                        vlc_value_t oldval, vlc_value_t newval, void *p_data ) 
    226224{ 
     225    VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval); 
    227226    decoder_t *p_dec = (decoder_t *)p_this; 
    228227    video_postproc_sys_t *p_sys = (video_postproc_sys_t *)p_data; 
  • modules/codec/ffmpeg/video.c

    r99fab90 r079a181  
    206206    if( p_sys->p_pp && p_sys->b_pp && !p_sys->b_pp_init ) 
    207207    { 
    208         E_(InitPostproc)( p_dec, p_sys->p_pp, p_context->width, 
     208        E_(InitPostproc)( p_sys->p_pp, p_context->width, 
    209209                          p_context->height, p_context->pix_fmt ); 
    210210        p_sys->b_pp_init = VLC_TRUE; 
     
    806806 
    807807        if( p_sys->p_pp && p_sys->b_pp ) 
    808             E_(PostprocPict)( p_dec, p_sys->p_pp, p_pic, p_ff_pic ); 
     808            E_(PostprocPict)( p_sys->p_pp, p_pic, p_ff_pic ); 
    809809        else 
    810810        { 
  • modules/codec/flac.c

    r99fab90 r079a181  
    224224    p_sys->b_stream_info = VLC_FALSE; 
    225225    p_sys->p_block=NULL; 
    226     p_sys->bytestream = block_BytestreamInit( p_dec ); 
     226    p_sys->bytestream = block_BytestreamInit(); 
    227227 
    228228#ifdef USE_LIBFLAC 
     
    587587                     unsigned *bytes, void *client_data ) 
    588588{ 
     589    VLC_UNUSED(decoder); 
    589590    decoder_t *p_dec = (decoder_t *)client_data; 
    590591    decoder_sys_t *p_sys = p_dec->p_sys; 
     
    614615                      const FLAC__int32 *const buffer[], void *client_data ) 
    615616{ 
     617    VLC_UNUSED(decoder); 
    616618    decoder_t *p_dec = (decoder_t *)client_data; 
    617619    decoder_sys_t *p_sys = p_dec->p_sys; 
     
    649651                                     void *client_data ) 
    650652{ 
     653    VLC_UNUSED(decoder); 
    651654    decoder_t *p_dec = (decoder_t *)client_data; 
    652655    decoder_sys_t *p_sys = p_dec->p_sys; 
     
    698701                                  void *client_data ) 
    699702{ 
     703    VLC_UNUSED(decoder); 
    700704    decoder_t *p_dec = (decoder_t *)client_data; 
    701705 
     
    13451349                                     void *client_data ) 
    13461350{ 
     1351    VLC_UNUSED(encoder); 
    13471352    encoder_t *p_enc = (encoder_t *)client_data; 
    13481353 
     
    13601365                      unsigned current_frame, void *client_data ) 
    13611366{ 
     1367    VLC_UNUSED(encoder); VLC_UNUSED(current_frame); 
    13621368    encoder_t *p_enc = (encoder_t *)client_data; 
    13631369    encoder_sys_t *p_sys = p_enc->p_sys; 
  • modules/codec/mpeg_audio.c

    r99fab90 r079a181  
    161161    p_sys->i_state = STATE_NOSYNC; 
    162162    aout_DateSet( &p_sys->end_date, 0 ); 
    163     p_sys->bytestream = block_BytestreamInit( p_dec ); 
     163    p_sys->bytestream = block_BytestreamInit(); 
    164164    p_sys->b_discontinuity = VLC_FALSE; 
    165165    p_sys->i_input_rate = INPUT_RATE_DEFAULT; 
  • modules/codec/png.c

    r99fab90 r079a181  
    9797{ 
    9898    block_t *p_block = (block_t *)png_get_io_ptr( p_png ); 
    99     png_size_t i_read = __MIN( p_block->i_buffer, (int)i_length ); 
     99    png_size_t i_read = __MIN( p_block->i_buffer, i_length ); 
    100100    memcpy( data, p_block->p_buffer, i_length ); 
    101101    p_block->p_buffer += i_length; 
  • modules/codec/rawvideo.c

    r99fab90