Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -1060,7 +1060,9 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, · 1059 unmodified lines | |||
| 1060 | int buf_size = avpkt->size; | 1060 | int buf_size = avpkt->size; |
| 1061 | int result, p, b; | 1061 | int result, p, b; |
| 1062 | 1062 | ||
| 1063 | init_get_bits(&ctx->gb, buf, buf_size * 8); | 1063 | result = init_get_bits8(&ctx->gb, buf, buf_size); |
| 1064 | if (result < 0) | ||
| 1065 | return result; | ||
| 1064 | ctx->frame_data = buf; | 1066 | ctx->frame_data = buf; |
| 1065 | ctx->frame_size = buf_size; | 1067 | ctx->frame_size = buf_size; |
| 1066 | 1068 | ||