Mercurial > libavcodec.hg
comparison utils.c @ 12137:b8a0924d6e42 libavcodec
100l, change avsubtitle_free to the actually tested and working version.
| author | reimar |
|---|---|
| date | Sun, 11 Jul 2010 07:53:39 +0000 |
| parents | cb3eb3a2fc96 |
| children | fbc6fc80e6c6 |
comparison
equal
deleted
inserted
replaced
| 12136:31bca176d2d9 | 12137:b8a0924d6e42 |
|---|---|
| 693 { | 693 { |
| 694 int i; | 694 int i; |
| 695 | 695 |
| 696 for (i = 0; i < sub->num_rects; i++) | 696 for (i = 0; i < sub->num_rects; i++) |
| 697 { | 697 { |
| 698 av_freep(sub->rects[i]->pict.data[0]); | 698 av_freep(&sub->rects[i]->pict.data[0]); |
| 699 av_freep(sub->rects[i]->pict.data[1]); | 699 av_freep(&sub->rects[i]->pict.data[1]); |
| 700 av_freep(sub->rects[i]->pict.data[2]); | 700 av_freep(&sub->rects[i]->pict.data[2]); |
| 701 av_freep(sub->rects[i]->pict.data[3]); | 701 av_freep(&sub->rects[i]->pict.data[3]); |
| 702 av_freep(sub->rects[i]->text); | 702 av_freep(&sub->rects[i]->text); |
| 703 av_freep(sub->rects[i]->ass); | 703 av_freep(&sub->rects[i]->ass); |
| 704 av_freep(sub->rects[i]); | 704 av_freep(&sub->rects[i]); |
| 705 } | 705 } |
| 706 | 706 |
| 707 av_freep(sub->rects); | 707 av_freep(&sub->rects); |
| 708 | 708 |
| 709 memset(sub, 0, sizeof(AVSubtitle)); | 709 memset(sub, 0, sizeof(AVSubtitle)); |
| 710 } | 710 } |
| 711 | 711 |
| 712 av_cold int avcodec_close(AVCodecContext *avctx) | 712 av_cold int avcodec_close(AVCodecContext *avctx) |
