summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-01-07 11:41:35 +0000
committerRodeo <[email protected]>2014-01-07 11:41:35 +0000
commit5bf5ef4f102648396941e4a1d1ce4af36638d16b (patch)
tree5c6a30cf198e846c5893597e701417c74ea708af /libhb/encavcodec.c
parent78d3ce52294d199cbf6f45d2372c2622589efaa7 (diff)
parsecsv: always check result of malloc()
RebiewBoard #670. Patch by icchan. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5957 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r--libhb/encavcodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 580bcd530..f75e4493e 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -442,7 +442,7 @@ int encavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
return HB_WORK_DONE;
}
- frame = avcodec_alloc_frame();
+ frame = av_frame_alloc();
frame->data[0] = in->plane[0].data;
frame->data[1] = in->plane[1].data;
frame->data[2] = in->plane[2].data;
@@ -556,7 +556,7 @@ int encavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
hb_error( "encavcodec: codec context has uninitialized codec; skipping frame" );
}
- avcodec_free_frame(&frame);
+ av_frame_free(&frame);
*buf_out = buf;