androidmedia: bug in create_amc_format i-frame-interval IllegalStateException
..@o2.pl
Submitted by msi..@Link to original bug (#746964)
Description
Hi,
There is a bug in create_amc_format function (gstamcvideoenc.c).
According to http://developer.android.com/reference/android/media/MediaFormat.html
KEY_I_FRAME_INTERVAL is mandatory for the encoder.
Current implementation causes IllegalStateExcaption while configuring the encoder with MediaFormat parameters (i_frame_int is set by default to 0).
if (encoder->i_frame_int)
line of code shall be removed from create_amc_format.
Best Regards
Marcin Sielski