[Libav-user] Encoding and writing to a file with libavformat and libavcodec

Shawn Van Every savanevery at gmail.com
Sat Dec 29 16:50:38 CET 2012


On Sat, Dec 29, 2012 at 6:17 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Shawn Van Every <savanevery at ...> writes:
>
> > Program received signal EXC_BAD_ACCESS, Could not access memory.
> > Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000090
> > 0x00000001000870b5 in ff_mov_write_packet ()
> > (gdb) bt
> > #0  0x00000001000870b5 in ff_mov_write_packet ()
> > #1  0x00007fff8e58cb28 in szone_malloc_should_clear ()
> > #2  0x00007fff8e57f71a in malloc_zone_memalign ()
> > #3  0x00007fff8e57ff4e in posix_memalign ()
> > #4  0x000000010000f9b5 in av_strdup ()
>
> The backtrace does not look very helpful,
> either use static linking or use --disable-stripping.
>
> Carl Eugen
>

Thanks Carl, here is an updated backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000090
0x0000000100090095 in mov_write_header (s=0x7fff5fbff410) at movenc.c:3499
3499    if (!s->pb->seekable &&

 It looks like I either haven't instantiated AVFormatContext (s in
movenc.c:3499) or AVIOContext (s->pb in movenc.c 3499) correctly.
 Unfortunately, I haven't seen AVIOContext used in any of the examples.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121229/d65bc95b/attachment.html>


More information about the Libav-user mailing list