summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fe4d5fe)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
int is_yuv = 0;
uint8_t *yuv_line = NULL;
int shift_h, shift_v;
int is_yuv = 0;
uint8_t *yuv_line = NULL;
int shift_h, shift_v;
const AVPixFmtDescriptor *pfd;
s->avctx = avctx;
const AVPixFmtDescriptor *pfd;
s->avctx = avctx;
strips = (s->height - 1) / s->rps + 1;
strips = (s->height - 1) / s->rps + 1;
+ packet_size = avctx->height * ((avctx->width * s->bpp + 7) >> 3) * 2 +
+ avctx->height * 4 + FF_MIN_BUFFER_SIZE;
+
- (ret = av_new_packet(pkt,
- avctx->width * avctx->height * s->bpp * 2 +
- avctx->height * 4 + FF_MIN_BUFFER_SIZE)) < 0) {
+ (ret = av_new_packet(pkt, packet_size)) < 0) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
return ret;
}
av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
return ret;
}