Skip to content

Commit

Permalink
common/ffmpeg.c: fix code style
Browse files Browse the repository at this point in the history
Signed-off-by: akarin <i@akarin.info>
  • Loading branch information
AkarinVS committed Jan 12, 2022
1 parent 43b29ba commit 15add79
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common/ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@

int avstream_get_index_entries_count(const AVStream *st) {
#ifdef FFMPEG_45
return avformat_index_get_entries_count(st);
return avformat_index_get_entries_count( st );
#else
return st->nb_index_entries;
#endif
}

const AVIndexEntry *avstream_index_get_entry(const AVStream *st, int idx) {
#ifdef FFMPEG_45
return avformat_index_get_entry(st, idx);
return avformat_index_get_entry( (AVStream *)st, idx );
#else
if (idx < 0 || idx >= avstream_get_index_entries_count(st)) return NULL;
if ( idx < 0 || idx >= avstream_get_index_entries_count(st) )
return NULL;
return &st->index_entries[idx];
#endif
}
Expand Down

0 comments on commit 15add79

Please sign in to comment.