Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1573:a4aa536938b8 libavcodec
segfault fix
author | michael |
---|---|
date | Sat, 25 Oct 2003 19:30:14 +0000 |
parents | bf452704100f |
children | 039cb2296de2 |
comparison
equal
deleted
inserted
replaced
1572:860e44e2c20c | 1573:a4aa536938b8 |
---|---|
583 av_freep(&s->q_inter_matrix16); | 583 av_freep(&s->q_inter_matrix16); |
584 av_freep(&s->blocks); | 584 av_freep(&s->blocks); |
585 av_freep(&s->input_picture); | 585 av_freep(&s->input_picture); |
586 av_freep(&s->reordered_input_picture); | 586 av_freep(&s->reordered_input_picture); |
587 | 587 |
588 for(i=0; i<MAX_PICTURE_COUNT; i++){ | 588 if(s->picture){ |
589 free_picture(s, &s->picture[i]); | 589 for(i=0; i<MAX_PICTURE_COUNT; i++){ |
590 free_picture(s, &s->picture[i]); | |
591 } | |
590 } | 592 } |
591 av_freep(&s->picture); | 593 av_freep(&s->picture); |
592 avcodec_default_free_buffers(s->avctx); | 594 avcodec_default_free_buffers(s->avctx); |
593 s->context_initialized = 0; | 595 s->context_initialized = 0; |
594 s->last_picture_ptr= | 596 s->last_picture_ptr= |