fix segfault when resampling fails

reported in #306

Change-Id: I08786671d71e5f2919c493a6d529e2ea66efe8aa
changes/85/10485/1
Richard Fuchs 9 years ago
parent 3dcfe82231
commit 2b72fdec73

@ -246,6 +246,8 @@ err:
static int decoder_got_frame(decoder_t *dec, output_t *output, metafile_t *metafile) {
// do we need to resample?
AVFrame *dec_frame = decoder_resample_frame(dec);
if (!dec_frame)
return -1;
// handle mix output
pthread_mutex_lock(&metafile->mix_lock);

Loading…
Cancel
Save