Skip to content

Commit

Permalink
try proposed fix from wseemann#219
Browse files Browse the repository at this point in the history
  • Loading branch information
delabiejochen authored Oct 21, 2020
1 parent 74da6be commit 7027219
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions native/src/main/jni/metadata/ffmpeg_mediametadataretriever.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ int stream_component_open(State *s, int stream_index) {
printf("avcodec_open2() failed\n");
return FAILURE;
}

if(s->video_st->codec->pix_fmt==-1) {
s->video_st->codec->pix_fmt=0;
}

s->sws_ctx = sws_getContext(s->video_st->codec->width,
s->video_st->codec->height,
Expand Down

0 comments on commit 7027219

Please sign in to comment.