Bug in ffmpeg resampling_audio.c -


i trying compile , run resampling_audio.c in ffmpeg 1.2. seems there bug , code segfaults. debugged code , seems crashing on

/* convert destination format */ ret = swr_convert(swr_ctx, dst_data, dst_nb_samples, (const uint8_t **)src_data, src_nb_samples); if (ret < 0) {     fprintf(stderr, "error while converting\n");     goto end; } dst_bufsize = av_samples_get_buffer_size(&dst_linesize, dst_nb_channels,                                              ret, dst_sample_fmt, 1); 

the stack trace is

#0  malloc_consolidate (av=0xb7f6f440) @ malloc.c:4251 #1  malloc_consolidate (av=0xb7f6f440) @ malloc.c:4203 #2  0xb7e4122f in _int_malloc (av=0xb7f6f440, bytes=8248) @ malloc.c:3543 #3  0xb7e42418 in _int_memalign (av=0xb7f6f440, alignment=32, bytes=8192) @ malloc.c:4503 #4  0xb7e446a0 in __gi___libc_memalign (alignment=32, bytes=8192) @ malloc.c:3104 #5  0xb7e45714 in __posix_memalign (memptr=memptr@entry=0xbfffed7c, alignment=alignment@entry=32, size=size@entry=8192) @ malloc.c:5049 #6  0x0805c0d8 in av_malloc (size=8192) @ libavutil/mem.c:93 #7  av_mallocz (size=size@entry=8192) @ libavutil/mem.c:207 #8  0x0804c35a in swri_realloc_audio (a=a@entry=0x807b860, count=2048, count@entry=1024) @ libswresample/swresample.c:462 #9  0x0804cc65 in swr_convert_internal (s=s@entry=0x807a180, out=out@entry=0x807ba28, out_count=out_count@entry=941, in=in@entry=0x807b7c8, in_count=in_count@entry=1024) @ libswresample/swresample.c:624 #10 0x0804da18 in memset (__len=<optimized out>, __dest=<optimized out>, __ch=<optimized out>) @ /usr/include/i386-linux-gnu/bits/string3.h:85 #11 fill_audiodata (out=<optimized out>, in_arg=<optimized out>) @ libswresample/swresample.c:492 #12 fill_audiodata (in_arg=0x8093360, out=0x807ba28) @ libswresample/swresample.c:735 #13 swr_convert (s=0x807a180, out_arg=0x8093360, out_count=941, in_arg=0x8092300, in_count=1024) @ libswresample/swresample.c:773 #14 0x0804bd5d in main (argc=2, argv=0xbffff2e4) @ resampling_audio.c:194 


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -