mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
avcodec/omx: Reindentation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5c0e2f839a
commit
bc75fb5423
@ -596,7 +596,7 @@ static av_cold int omx_component_init(AVCodecContext *avctx, const char *role)
|
||||
|
||||
static av_cold void cleanup(OMXCodecContext *s)
|
||||
{
|
||||
int i, executing;
|
||||
int executing;
|
||||
|
||||
/* If the mutexes/condition variables have not been properly initialized,
|
||||
* nothing has been initialized and locking the mutex might be unsafe. */
|
||||
@ -609,14 +609,14 @@ static av_cold void cleanup(OMXCodecContext *s)
|
||||
OMX_SendCommand(s->handle, OMX_CommandStateSet, OMX_StateIdle, NULL);
|
||||
wait_for_state(s, OMX_StateIdle);
|
||||
OMX_SendCommand(s->handle, OMX_CommandStateSet, OMX_StateLoaded, NULL);
|
||||
for (i = 0; i < s->num_in_buffers; i++) {
|
||||
for (int i = 0; i < s->num_in_buffers; i++) {
|
||||
OMX_BUFFERHEADERTYPE *buffer = get_buffer(&s->input_mutex, &s->input_cond,
|
||||
&s->num_free_in_buffers, s->free_in_buffers, 1);
|
||||
if (s->input_zerocopy)
|
||||
buffer->pBuffer = NULL;
|
||||
OMX_FreeBuffer(s->handle, s->in_port, buffer);
|
||||
}
|
||||
for (i = 0; i < s->num_out_buffers; i++) {
|
||||
for (int i = 0; i < s->num_out_buffers; i++) {
|
||||
OMX_BUFFERHEADERTYPE *buffer = get_buffer(&s->output_mutex, &s->output_cond,
|
||||
&s->num_done_out_buffers, s->done_out_buffers, 1);
|
||||
OMX_FreeBuffer(s->handle, s->out_port, buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user