Browse Source

fix segfault when resampling fails

reported in #306

Change-Id: I08786671d71e5f2919c493a6d529e2ea66efe8aa
changes/85/10485/1
Richard Fuchs 9 years ago
parent
commit
2b72fdec73
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      recording-daemon/decoder.c

+ 2
- 0
recording-daemon/decoder.c View File

@ -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