Browse Source

cosmetics: misc typo fixes

Originally committed as revision 9815 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 18 years ago
parent
commit
df3a80b50a
10 changed files with 15 additions and 15 deletions
  1. +2
    -2
      libavcodec/avcodec.h
  2. +1
    -1
      libavcodec/bitstream.c
  3. +1
    -1
      libavcodec/bitstream.h
  4. +1
    -1
      libavcodec/cabac.h
  5. +1
    -1
      libavcodec/cook.c
  6. +1
    -1
      libavcodec/libgsm.c
  7. +4
    -4
      libavcodec/ppc/snow_altivec.c
  8. +1
    -1
      libavcodec/ratecontrol.c
  9. +2
    -2
      libavcodec/snow.c
  10. +1
    -1
      libavformat/swf.c

+ 2
- 2
libavcodec/avcodec.h View File

@@ -2834,7 +2834,7 @@ void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size);
* Frees all static arrays and resets their pointers to 0.
* Call this function to release all statically allocated tables.
*
* @deprecated. Code which uses av_free_static is broken/missdesigned
* @deprecated. Code which uses av_free_static is broken/misdesigned
* and should correctly use static arrays
*
*/
@@ -2847,7 +2847,7 @@ attribute_deprecated void av_free_static(void);
*
* @param[in] size The amount of memory you need in bytes.
* @return block of memory of the requested size
* @deprecated. Code which uses av_mallocz_static is broken/missdesigned
* @deprecated. Code which uses av_mallocz_static is broken/misdesigned
* and should correctly use static arrays
*/
attribute_deprecated void *av_mallocz_static(unsigned int size);


+ 1
- 1
libavcodec/bitstream.c View File

@@ -36,7 +36,7 @@
* @param[in] ptr The block of memory to reallocate.
* @param[in] size The requested size.
* @return Block of memory of requested size.
* @deprecated. Code which uses ff_realloc_static is broken/missdesigned
* @deprecated. Code which uses ff_realloc_static is broken/misdesigned.
* and should correctly use static arrays
*/
attribute_deprecated void *ff_realloc_static(void *ptr, unsigned int size);


+ 1
- 1
libavcodec/bitstream.h View File

@@ -176,7 +176,7 @@ typedef struct RL_VLC_ELEM {
#define UNALIGNED_STORES_ARE_BAD
#endif

/* used to avoid missaligned exceptions on some archs (alpha, ...) */
/* used to avoid misaligned exceptions on some archs (alpha, ...) */
#if defined(ARCH_X86)
# define unaligned16(a) (*(const uint16_t*)(a))
# define unaligned32(a) (*(const uint32_t*)(a))


+ 1
- 1
libavcodec/cabac.h View File

@@ -457,7 +457,7 @@ static av_always_inline int get_cabac_inline(CABACContext *c, uint8_t * const st
"2: \n\t"
"movl %%edx, "RANGE "(%2) \n\t"
"movl %%ebx, "LOW "(%2) \n\t"
:"=&a"(bit) //FIXME this is fragile gcc either runs out of registers or misscompiles it (for example if "+a"(bit) or "+m"(*state) is used
:"=&a"(bit) //FIXME this is fragile gcc either runs out of registers or miscompiles it (for example if "+a"(bit) or "+m"(*state) is used
:"r"(state), "r"(c)
: "%"REG_c, "%ebx", "%edx", "%"REG_S, "memory"
);


+ 1
- 1
libavcodec/cook.c View File

@@ -283,7 +283,7 @@ static int init_cplscales_table (COOKContext *q) {
* Why? No idea, some checksum/error detection method maybe.
*
* Out buffer size: extra bytes are needed to cope with
* padding/missalignment.
* padding/misalignment.
* Subpackets passed to the decoder can contain two, consecutive
* half-subpackets, of identical but arbitrary size.
* 1234 1234 1234 1234 extraA extraB


+ 1
- 1
libavcodec/libgsm.c View File

@@ -30,7 +30,7 @@
#include "avcodec.h"
#include <gsm.h>

// gsm.h miss some essential constants
// gsm.h misses some essential constants
#define GSM_BLOCK_SIZE 33
#define GSM_MS_BLOCK_SIZE 65
#define GSM_FRAME_SIZE 160


+ 4
- 4
libavcodec/ppc/snow_altivec.c View File

@@ -522,7 +522,7 @@ static void inner_add_yblock_bw_8_obmc_16_altivec(uint8_t *obmc,
vector signed int *v = (vector signed int *)vbuf, *d;

for(y=0; y<b_h; y++){
//FIXME ugly missue of obmc_stride
//FIXME ugly misue of obmc_stride

uint8_t *obmc1= obmc + y*obmc_stride;
uint8_t *obmc2= obmc1+ (obmc_stride>>1);
@@ -588,7 +588,7 @@ static void inner_add_yblock_bw_16_obmc_32_altivec(uint8_t *obmc,
vector signed int *v = (vector signed int *)vbuf, *d;

for(y=0; y<b_h; y++){
//FIXME ugly missue of obmc_stride
//FIXME ugly misue of obmc_stride

uint8_t *obmc1= obmc + y*obmc_stride;
uint8_t *obmc2= obmc1+ (obmc_stride>>1);
@@ -671,7 +671,7 @@ static void inner_add_yblock_a_bw_8_obmc_16_altivec(uint8_t *obmc,
vector signed int *v = (vector signed int *)vbuf, *d;

for(y=0; y<b_h; y++){
//FIXME ugly missue of obmc_stride
//FIXME ugly misue of obmc_stride

uint8_t *obmc1= obmc + y*obmc_stride;
uint8_t *obmc2= obmc1+ (obmc_stride>>1);
@@ -717,7 +717,7 @@ static void inner_add_yblock_a_bw_16_obmc_32_altivec(uint8_t *obmc,
vector signed int *v = (vector signed int *)vbuf, *d;

for(y=0; y<b_h; y++){
//FIXME ugly missue of obmc_stride
//FIXME ugly misue of obmc_stride

uint8_t *obmc1= obmc + y*obmc_stride;
uint8_t *obmc2= obmc1+ (obmc_stride>>1);


+ 1
- 1
libavcodec/ratecontrol.c View File

@@ -243,7 +243,7 @@ int ff_rate_control_init(MpegEncContext *s)
bits= rce.i_tex_bits + rce.p_tex_bits;

q= get_qscale(s, &rce, rcc->pass1_wanted_bits/rcc->pass1_rc_eq_output_sum, i);
rcc->pass1_wanted_bits+= s->bit_rate/(1/av_q2d(s->avctx->time_base)); //FIXME missbehaves a little for variable fps
rcc->pass1_wanted_bits+= s->bit_rate/(1/av_q2d(s->avctx->time_base)); //FIXME misbehaves a little for variable fps
}
}



+ 2
- 2
libavcodec/snow.c View File

@@ -2520,7 +2520,7 @@ void ff_snow_inner_add_yblock(const uint8_t *obmc, const int obmc_stride, uint8_
int y, x;
DWTELEM * dst;
for(y=0; y<b_h; y++){
//FIXME ugly missue of obmc_stride
//FIXME ugly misue of obmc_stride
const uint8_t *obmc1= obmc + y*obmc_stride;
const uint8_t *obmc2= obmc1+ (obmc_stride>>1);
const uint8_t *obmc3= obmc1+ obmc_stride*(obmc_stride>>1);
@@ -2680,7 +2680,7 @@ assert(src_stride > 2*MB_SIZE + 5);
STOP_TIMER("inner_add_yblock")
}else
for(y=0; y<b_h; y++){
//FIXME ugly missue of obmc_stride
//FIXME ugly misue of obmc_stride
const uint8_t *obmc1= obmc + y*obmc_stride;
const uint8_t *obmc2= obmc1+ (obmc_stride>>1);
const uint8_t *obmc3= obmc1+ obmc_stride*(obmc_stride>>1);


+ 1
- 1
libavformat/swf.c View File

@@ -283,7 +283,7 @@ static int swf_write_header(AVFormatContext *s)
}

if (!video_enc) {
/* currenty, cannot work correctly if audio only */
/* currently, cannot work correctly if audio only */
swf->video_type = 0;
width = 320;
height = 200;


Loading…
Cancel
Save