Hi all,
I'm experiencing inconsistent behaviour while trying to decode an h264 video
with libavcodec and libx264.
Specifically, the context->codec->decode function pointer is sometimes null,
leading to a crash in the avcodec_decode_video function.
For example:
(gdb) p *context->codec
$6 = {name = 0x8875750 "libx264", type = AVMEDIA_TYPE_VIDEO, id =
CODEC_ID_H264, priv_data_size = 1040, init = 0x83e56b2 <X264_init>, encode =
0x83e542f <X264_frame>, close = 0x83e565c <X264_close>, decode = 0,
capabilities = 32, next = 0x0, flush = 0, supported_framerates = 0x0,
pix_fmts = 0x89996e0, long_name = 0x8875758 "libx264 H.264 / AVC / MPEG-4
AVC / MPEG-4 part 10", supported_samplerates = 0x0, sample_fmts = 0x0,
channel_layouts = 0x0, max_lowres = 0 '\000', priv_class = 0x0, profiles =
0x0}
Notice how encode is assigned, but not decode. What may be causing this?
Thanks in advance for any hints!
--
Saludos,
Bruno González
_______________________________________________
Jabber: stenyak AT gmail.com
http://www.stenyak.com
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user