Browse Source

ffv1enc: propagate error code from write_extradata()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
c8d89be477
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/ffv1enc.c

+ 2
- 1
libavcodec/ffv1enc.c View File

@@ -904,7 +904,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
avctx->slices);
return AVERROR(ENOSYS);
slices_ok:
write_extradata(s);
if ((ret = write_extradata(s)) < 0)
return ret;
}

if ((ret = ffv1_init_slice_contexts(s)) < 0)


Loading…
Cancel
Save