From 11f024ef0ab923ed8680fc35a087d576e549c849 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 6 Apr 2015 21:00:42 +0200 Subject: h264: move freeing the escaped RBSP buffer to free_context() It does not logically belong in free_tables(), since it's not allocated in alloc_tables() and its size has nothing to do with the frame size. --- libavcodec/h264_slice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/h264_slice.c') diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index da394d19e4..4623dd99fa 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -994,7 +994,7 @@ static int h264_slice_header_init(H264Context *h, int reinit) } if (reinit) - ff_h264_free_tables(h, 0); + ff_h264_free_tables(h); h->first_field = 0; h->prev_interlaced_frame = 1; -- cgit v1.2.3