static void enc_postprocess(MSFilter *f) { EncData *d=(EncData*)f->data; rfc3984_destroy(d->packer); AMediaCodec_flush(d->codec); AMediaCodec_stop(d->codec); d->packer=NULL; }
static void enc_postprocess(MSFilter *f){ EncData *d=(EncData*)f->data; if(d->packer!=NULL) { rfc3984_destroy(d->packer); d->packer=NULL; } x264_encoder_free_framebuffer(d->enc); x264_encoder_close(d->enc); }
static void enc_postprocess(MSFilter *f){ EncData *d=(EncData*)f->data; rfc3984_destroy(d->packer); d->packer=NULL; if (d->enc!=NULL){ x264_encoder_close(d->enc); d->enc=NULL; } }
void MSOpenH264Encoder::uninitialize() { if (mPacker != 0) { rfc3984_destroy(mPacker); mPacker = 0; } if (mEncoder != 0) { mEncoder->Uninitialize(); } mInitialized = false; }