michael | 1 Dec 2007 01:07
Picon

r11116 - trunk/libavformat/wc3movie.c

Author: michael
Date: Sat Dec  1 01:07:51 2007
New Revision: 11116

Log:
1000l _reserved  (found by checktree.sh)

Modified:
   trunk/libavformat/wc3movie.c

Modified: trunk/libavformat/wc3movie.c
==============================================================================
--- trunk/libavformat/wc3movie.c	(original)
+++ trunk/libavformat/wc3movie.c	Sat Dec  1 01:07:51 2007
 <at>  <at>  -33,7 +33,7  <at>  <at> 

 #define FORM_TAG MKTAG('F', 'O', 'R', 'M')
 #define MOVE_TAG MKTAG('M', 'O', 'V', 'E')
-#define _PC__TAG MKTAG('_', 'P', 'C', '_')
+#define  PC__TAG MKTAG('_', 'P', 'C', '_')
 #define SOND_TAG MKTAG('S', 'O', 'N', 'D')
 #define BNAM_TAG MKTAG('B', 'N', 'A', 'M')
 #define SIZE_TAG MKTAG('S', 'I', 'Z', 'E')
 <at>  <at>  -165,7 +165,7  <at>  <at>  static int wc3_read_header(AVFormatConte
             url_fseek(pb, size, SEEK_CUR);
             break;

-        case _PC__TAG:
+        case PC__TAG:
             /* need the number of palettes */
(Continue reading)

michael | 1 Dec 2007 01:19
Picon

r11117 - in trunk: ffmpeg.c ffserver.c libavcodec/ppc/dsputil_ppc.c libavcodec/ratecontrol.c libavcodec/resample.c libavcodec/vorbis_dec.c libavformat/asf-enc.c

Author: michael
Date: Sat Dec  1 01:19:44 2007
New Revision: 11117

Log:
stupid code (casting of void*) found by checktree.sh

Modified:
   trunk/ffmpeg.c
   trunk/ffserver.c
   trunk/libavcodec/ppc/dsputil_ppc.c
   trunk/libavcodec/ratecontrol.c
   trunk/libavcodec/resample.c
   trunk/libavcodec/vorbis_dec.c
   trunk/libavformat/asf-enc.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Sat Dec  1 01:19:44 2007
 <at>  <at>  -1399,7 +1399,7  <at>  <at>  static int av_encode(AVFormatContext **o
     int key;
     int want_sdp = 1;

-    file_table= (AVInputFile*) av_mallocz(nb_input_files * sizeof(AVInputFile));
+    file_table= av_mallocz(nb_input_files * sizeof(AVInputFile));
     if (!file_table)
         goto fail;

Modified: trunk/ffserver.c
(Continue reading)

michael | 1 Dec 2007 01:21
Picon

r11118 - trunk/libavcodec/resample.c

Author: michael
Date: Sat Dec  1 01:21:43 2007
New Revision: 11118

Log:
sensless cast and ()

Modified:
   trunk/libavcodec/resample.c

Modified: trunk/libavcodec/resample.c
==============================================================================
--- trunk/libavcodec/resample.c	(original)
+++ trunk/libavcodec/resample.c	Sat Dec  1 01:21:43 2007
 <at>  <at>  -191,7 +191,7  <at>  <at>  int audio_resample(ReSampleContext *s, s
     }

     /* make some zoom to avoid round pb */
-    lenout= (int)(4*nb_samples * s->ratio) + 16;
+    lenout= 4*nb_samples * s->ratio + 16;
     bufout[0]= av_malloc( lenout * sizeof(short) );
     bufout[1]= av_malloc( lenout * sizeof(short) );
reimar | 1 Dec 2007 10:40
Picon

r11119 - trunk/libavcodec/huffman.c

Author: reimar
Date: Sat Dec  1 10:39:59 2007
New Revision: 11119

Log:
Fix nodes[nb_codes*2-1].count being uninitialized and used to initialize
nodes[nb_codes*2-2].count (thus making that invalid as well) in
ff_huff_build_tree.
Might fix some (hard to reproduce) crashes in VP6 decoder.

Modified:
   trunk/libavcodec/huffman.c

Modified: trunk/libavcodec/huffman.c
==============================================================================
--- trunk/libavcodec/huffman.c	(original)
+++ trunk/libavcodec/huffman.c	Sat Dec  1 10:39:59 2007
 <at>  <at>  -82,6 +82,7  <at>  <at>  int ff_huff_build_tree(AVCodecContext *a
     }
     qsort(nodes, nb_codes, sizeof(Node), cmp);
     cur_node = nb_codes;
+    nodes[nb_codes*2-1].count = 0;
     for(i = 0; i < nb_codes*2-1; i += 2){
         nodes[cur_node].sym = HNODE;
         nodes[cur_node].count = nodes[i].count + nodes[i+1].count;
diego | 1 Dec 2007 11:57
Picon

[propchange]: r11118 - svn:log

Author: diego
Revision: 11118
Property Name: svn:log
Action: modified

Property diff:
--- old property value
+++ new property value
 <at>  <at>  -1 +1  <at>  <at> 
-sensless cast and ()
+senseless cast and ()
diego | 1 Dec 2007 13:06
Picon

r11120 - in trunk: libavcodec/avcodec.h libavformat/avformat.h

Author: diego
Date: Sat Dec  1 13:05:59 2007
New Revision: 11120

Log:
succes --> success typo

Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavformat/avformat.h

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	(original)
+++ trunk/libavcodec/avcodec.h	Sat Dec  1 13:05:59 2007
 <at>  <at>  -2676,7 +2676,7  <at>  <at>  int avcodec_parse_frame(AVCodecContext *
  *  <at> param[in] samples the input buffer containing the samples
  * The number of samples read from this buffer is frame_size*channels,
  * both of which are defined in \p avctx.
- *  <at> return On error a negative value is returned, on succes zero or the number
+ *  <at> return On error a negative value is returned, on success zero or the number
  * of bytes used to encode the data read from the input buffer.
  */
 int avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size,

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	(original)
+++ trunk/libavformat/avformat.h	Sat Dec  1 13:05:59 2007
 <at>  <at>  -826,7 +826,7  <at>  <at>  attribute_deprecated int parse_frame_rat
(Continue reading)

kostya | 1 Dec 2007 16:41
Picon

r11121 - trunk/libavcodec/tiff.c

Author: kostya
Date: Sat Dec  1 16:41:35 2007
New Revision: 11121

Log:
TIFF may omit compression tag.

This fixes issue 276.

Modified:
   trunk/libavcodec/tiff.c

Modified: trunk/libavcodec/tiff.c
==============================================================================
--- trunk/libavcodec/tiff.c	(original)
+++ trunk/libavcodec/tiff.c	Sat Dec  1 16:41:35 2007
 <at>  <at>  -422,6 +422,7  <at>  <at>  static int decode_frame(AVCodecContext *
     }
     s->le = le;
     s->invert = 0;
+    s->compr = TIFF_RAW;
     // As TIFF 6.0 specification puts it "An arbitrary but carefully chosen number
     // that further identifies the file as a TIFF file"
     if(tget_short(&buf, le) != 42){
vitor | 1 Dec 2007 23:21

r11122 - in trunk: libavcodec/alac.c libavcodec/apedec.c libavcodec/armv4l/mpegvideo_arm.c libavcodec/h263dec.c libavcodec/h264.c libavcodec/i386/cavsdsp_mmx.c libavcodec/i386/dsputil_mmx.c libavcodec/i386/idct_mmx.c libavcodec/i386/mpegvideo_mmx.c libavcodec/imgconvert.c libavcodec/imgconvert_template.h libavcodec/imgresample.c libavcodec/motion-test.c libavcodec/mpegvideo.h libavcodec/ppc/dsputil_altivec.c libavcodec/ppc/gmc_altivec.c libavcodec/ppc/mpegvideo_altivec.c libavcodec/sparc/dsputil_vis.c libavcodec/vc1.c libavdevice/audio.c libavformat/asf.h libpostproc/postprocess_altivec_template.c vhook/drawtext.c

Author: vitor
Date: Sat Dec  1 23:21:04 2007
New Revision: 11122

Log:
spelling

Modified:
   trunk/libavcodec/alac.c
   trunk/libavcodec/apedec.c
   trunk/libavcodec/armv4l/mpegvideo_arm.c
   trunk/libavcodec/h263dec.c
   trunk/libavcodec/h264.c
   trunk/libavcodec/i386/cavsdsp_mmx.c
   trunk/libavcodec/i386/dsputil_mmx.c
   trunk/libavcodec/i386/idct_mmx.c
   trunk/libavcodec/i386/mpegvideo_mmx.c
   trunk/libavcodec/imgconvert.c
   trunk/libavcodec/imgconvert_template.h
   trunk/libavcodec/imgresample.c
   trunk/libavcodec/motion-test.c
   trunk/libavcodec/mpegvideo.h
   trunk/libavcodec/ppc/dsputil_altivec.c
   trunk/libavcodec/ppc/gmc_altivec.c
   trunk/libavcodec/ppc/mpegvideo_altivec.c
   trunk/libavcodec/sparc/dsputil_vis.c
   trunk/libavcodec/vc1.c
   trunk/libavdevice/audio.c
   trunk/libavformat/asf.h
   trunk/libpostproc/postprocess_altivec_template.c
(Continue reading)

Mike Melanson | 1 Dec 2007 23:23

Re: r11122 - in trunk: libavcodec/alac.c libavcodec/apedec.c libavcodec/armv4l/mpegvideo_arm.c libavcodec/h263dec.c libavcodec/h264.c libavcodec/i386/cavsdsp_mmx.c libavcodec/i386/dsputil_mmx.c libavcodec/i386/idct_mmx.c libavcodec/i386/mpegvideo_mmx.c libavcodec/imgconvert.c libavcodec/imgconvert_template.h libavcodec/imgresample.c libavcodec/motion-test.c libavcodec/mpegvideo.h libavcodec/ppc/dsputil_altivec.c libavcodec/ppc/gmc_altivec.c libavcodec/ppc/mpegvideo_altivec.c libavcodec/sparc/dsputil_vis.c libavcodec/vc1.c libavdevice/audio.c libavformat/asf.h libpostproc/postprocess_altivec_template.c vhook/drawtext.c

vitor wrote:
> -     * should be unrolled and optimised
> +     * should be unrolled and optimized
>       */
>      if (predictor_coef_num == 4) {
> -        /* FIXME: optimised general case */
> +        /* FIXME: optimized general case */
[...]

Excellent! I'm glad we have finally settled on the proper (read:
American) spelling for these words. :)

--

-- 
	-Mike Melanson
Vitor Sessak | 1 Dec 2007 23:32

Re: r11122 - in trunk: libavcodec/alac.c libavcodec/apedec.c libavcodec/armv4l/mpegvideo_arm.c libavcodec/h263dec.c libavcodec/h264.c libavcodec/i386/cavsdsp_mmx.c libavcodec/i386/dsputil_mmx.c libavcodec/i386/idct_mmx.c libavcodec/i386/mpegvideo_mmx.c libavcodec/imgconvert.c libavcodec/imgconvert_template.h libavcodec/imgresample.c libavcodec/motion-test.c libavcodec/mpegvideo.h libavcodec/ppc/dsputil_altivec.c libavcodec/ppc/gmc_altivec.c libavcodec/ppc/mpegvideo_altivec.c libavcodec/sparc/dsputil_vis.c libavcodec/vc1.c libavdevice/audio.c libavformat/asf.h libpostproc/postprocess_altivec_template.c vhook/drawtext.c

Hi

Mike Melanson wrote:
> vitor wrote:
>> -     * should be unrolled and optimised
>> +     * should be unrolled and optimized
>>       */
>>      if (predictor_coef_num == 4) {
>> -        /* FIXME: optimised general case */
>> +        /* FIXME: optimized general case */
> [...]
> 
> Excellent! I'm glad we have finally settled on the proper (read:
> American) spelling for these words. :)

Oops... When I saw the inconsistency, I though it was a misspelling... 
It sucks sometimes not to be a native speaker :-(

-Vitor

Gmane