Hi all,<div>I'm experiencing inconsistent behaviour while trying to decode an h264 video with libavcodec and libx264.</div><div>Specifically, the context->codec->decode function pointer is sometimes null, leading to a crash in the avcodec_decode_video function.</div>
<div><br></div><div>For example:</div><div>(gdb) p *context->codec</div><div><div>$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}</div>
</div><div><br></div><div>Notice how encode is assigned, but not decode. What may be causing this?</div><div><br></div><div>Thanks in advance for any hints!</div>
<div><br></div><div>-- <br>Saludos,<br> Bruno González<br><br>_______________________________________________<br>Jabber: stenyak AT <a href="http://gmail.com" target="_blank" class="vt-p">gmail.com</a><br><a href="http://www.stenyak.com" target="_blank" class="vt-p">http://www.stenyak.com</a><br>
</div>