[FFmpeg-cvslog] avcodec/flac_parser: Use sizeof(variable) instead of sizeof(type)

Michael Niedermayer git at videolan.org
Thu Jan 15 18:02:45 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 15 16:48:54 2015 +0100| [5f964c6027da4924a9d0b9a9a6ab5efa7227c189] | committer: Michael Niedermayer

avcodec/flac_parser: Use sizeof(variable) instead of sizeof(type)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5f964c6027da4924a9d0b9a9a6ab5efa7227c189
---

 libavcodec/flac_parser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c
index 0e45ab0..bc874c5 100644
--- a/libavcodec/flac_parser.c
+++ b/libavcodec/flac_parser.c
@@ -182,7 +182,7 @@ static int find_headers_search_validate(FLACParseContext *fpc, int offset)
             size++;
         }
 
-        *end_handle = av_mallocz(sizeof(FLACHeaderMarker));
+        *end_handle = av_mallocz(sizeof(**end_handle));
         if (!*end_handle) {
             av_log(fpc->avctx, AV_LOG_ERROR,
                    "couldn't allocate FLACHeaderMarker\n");



More information about the ffmpeg-cvslog mailing list