It is already set during init.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -320,7 +320,6 @@ static int svq1_encode_plane(SVQ1EncContext *s, int plane, · 319 unmodified lines | |||
| 320 | block_height = (height + 15) / 16; | 320 | block_height = (height + 15) / 16; |
| 321 | 321 | ||
| 322 | if (s->pict_type == AV_PICTURE_TYPE_P) { | 322 | if (s->pict_type == AV_PICTURE_TYPE_P) { |
| 323 | s2->avctx = s->avctx; | ||
| 324 | s2->last_pic.data[0] = ref_plane; | 323 | s2->last_pic.data[0] = ref_plane; |
| 325 | s2->linesize = | 324 | s2->linesize = |
| 326 | s2->last_pic.linesize[0] = | 325 | s2->last_pic.linesize[0] = |