Mercurial > libavformat.hg
comparison utils.c @ 1313:dcefff960aeb libavformat
Remove a redundant memset from libavformat.
| author | takis |
|---|---|
| date | Thu, 14 Sep 2006 12:04:07 +0000 |
| parents | 59b0e373c549 |
| children | 62a205694fbe |
comparison
equal
deleted
inserted
replaced
| 1312:24f1d6a50117 | 1313:dcefff960aeb |
|---|---|
| 492 } | 492 } |
| 493 | 493 |
| 494 AVFormatContext *av_alloc_format_context(void) | 494 AVFormatContext *av_alloc_format_context(void) |
| 495 { | 495 { |
| 496 AVFormatContext *ic; | 496 AVFormatContext *ic; |
| 497 ic = av_mallocz(sizeof(AVFormatContext)); | 497 ic = av_malloc(sizeof(AVFormatContext)); |
| 498 if (!ic) return ic; | 498 if (!ic) return ic; |
| 499 avformat_get_context_defaults(ic); | 499 avformat_get_context_defaults(ic); |
| 500 ic->av_class = &av_format_context_class; | 500 ic->av_class = &av_format_context_class; |
| 501 return ic; | 501 return ic; |
| 502 } | 502 } |
