Mercurial > libavcodec.hg
comparison h264_parser.c @ 7989:0607ff0877ff libavcodec
ff_parse_close() is not the correct function for H264Context.
| author | michael |
|---|---|
| date | Fri, 03 Oct 2008 23:08:52 +0000 |
| parents | 38d577c3cb60 |
| children | a38b31a2ac52 |
comparison
equal
deleted
inserted
replaced
| 7988:a7dfe657968d | 7989:0607ff0877ff |
|---|---|
| 137 state= (state<<8) | buf[i]; | 137 state= (state<<8) | buf[i]; |
| 138 } | 138 } |
| 139 return 0; | 139 return 0; |
| 140 } | 140 } |
| 141 | 141 |
| 142 static close(AVCodecParserContext *s) | |
| 143 { | |
| 144 H264Context *h = s->priv_data; | |
| 145 ParseContext *pc = &h->s.parse_context; | |
| 146 | |
| 147 av_free(pc->buffer); | |
| 148 } | |
| 149 | |
| 142 | 150 |
| 143 AVCodecParser h264_parser = { | 151 AVCodecParser h264_parser = { |
| 144 { CODEC_ID_H264 }, | 152 { CODEC_ID_H264 }, |
| 145 sizeof(H264Context), | 153 sizeof(H264Context), |
| 146 NULL, | 154 NULL, |
| 147 h264_parse, | 155 h264_parse, |
| 148 ff_parse_close, | 156 close, |
| 149 h264_split, | 157 h264_split, |
| 150 }; | 158 }; |
