Lines Matching defs:sub
1078 const AVSubtitle *sub)
1081 if(sub->start_display_time) {
1085 if(sub->num_rects == 0 || !sub->rects)
1087 ret = avctx->codec->encode(avctx, buf, buf_size, sub);
1248 int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
1256 ret = avctx->codec->decode(avctx, sub, got_sub_ptr, avpkt);
1262 void avsubtitle_free(AVSubtitle *sub)
1266 for (i = 0; i < sub->num_rects; i++)
1268 av_freep(&sub->rects[i]->pict.data[0]);
1269 av_freep(&sub->rects[i]->pict.data[1]);
1270 av_freep(&sub->rects[i]->pict.data[2]);
1271 av_freep(&sub->rects[i]->pict.data[3]);
1272 av_freep(&sub->rects[i]->text);
1273 av_freep(&sub->rects[i]->ass);
1274 av_freep(&sub->rects[i]);
1277 av_freep(&sub->rects);
1279 memset(sub, 0, sizeof(AVSubtitle));