do you need to reset/free the encoder in case of failure? If this is > the case you need to unset/free here or in the close function
Nothing to do with the encoder in case of failure. It just initializes the given buffer, and returns it. BTW, the only failure condition is bad parameters, already checked by `lc3_hr_encoder_size()`. Perhaps I can just remove the check of the returned value. can this fail? Can just fail on bad parameters, the size of frames `frame_bytes` has been checked by `lc3_hr_frame_block_bytes()`. Looks safe to me. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".