~ubuntu-branches/ubuntu/edgy/gstreamer0.10-ffmpeg/edgy

« back to all changes in this revision

Viewing changes to gst-libs/ext/ffmpeg/libavcodec/ws-snd1.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-04-01 16:13:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060401161343-08cyx5z9c530gtrd
Tags: 0.10.1-0ubuntu1
* New upstream release:
  Features since 0.10.0:
    + Parallel installability with 0.8.x series
    + Threadsafe design and API
    + ffvideoscale ported
    + ffdeinterlace ported
    + demuxer wrapper works pull-based
    + disabled mpeg2 video and mp3 audio autoplugging
    + fixes for Indeo3, PNG, smc, H264 HD, H263, FLV1, G2
  Bugs fixed since 0.10.0:
    + [ffdemux_mp3] ffmpeg mp3 decoder miss seeking
    + Reading mpeg-ts stream from standard input does not work
    + configure script doesn't accept --with-pkg-config-path ar...
    + Fails to build under powerpc
    + avcodec_open()/close() aren't thread-safe
    + [ffdec_cinepak] chef.avi causes gstreamer to hang in preroll
    + Indeo AVI files do not play with 0.10
    + [ffdec] Memory leak when joining pcache
    + MS Video 1 palettized AVI doesn't work
    + ffdeinterlace port to 0.10
    + [ffmpegenc] FFMpeg audio encoders do not set caps to buffers
    + gstreamer CVS doesn't work with ffmpeg codecs
    + Wrap the ffmpeg demuxers
    + [ffdec_h264] seeking in " IntoTheBlue_Cin_AVC.mp4 " crashes...
    + Too fast playback of h263p encoded file
    + FFmpeg video scale port to 0.10
    + segfault in ffmpeg enc
    + Memory leak in ffmpegenc
    + [CVE-2005-4048] avcodec_default_get_buffer heap overflow
* debian/patches/32_CVE-2005-4048_avcodec-default-get-buffer-heap-overflow.patch:
  - Dropped, this is upstream now

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU Lesser General Public
16
16
 * License along with this library; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 */
19
19
#include "avcodec.h"
20
20
 
40
40
static int ws_snd_decode_init(AVCodecContext * avctx)
41
41
{
42
42
//    WSSNDContext *c = avctx->priv_data;
43
 
    
 
43
 
44
44
    return 0;
45
45
}
46
46
 
49
49
                uint8_t *buf, int buf_size)
50
50
{
51
51
//    WSSNDContext *c = avctx->priv_data;
52
 
    
 
52
 
53
53
    int in_size, out_size;
54
54
    int sample = 0;
55
55
    int i;
56
56
    short *samples = data;
57
 
    
 
57
 
58
58
    if (!buf_size)
59
59
        return 0;
60
60
 
62
62
    *data_size = out_size * 2;
63
63
    in_size = LE_16(&buf[2]);
64
64
    buf += 4;
65
 
    
 
65
 
66
66
    if (in_size == out_size) {
67
67
        for (i = 0; i < out_size; i++)
68
68
            *samples++ = (*buf++ - 0x80) << 8;
69
69
        return buf_size;
70
70
    }
71
 
    
 
71
 
72
72
    while (out_size > 0) {
73
73
        int code;
74
74
        uint8_t count;
129
129
            }
130
130
        }
131
131
    }
132
 
    
 
132
 
133
133
    return buf_size;
134
134
}
135
135