diff options
| -rw-r--r-- | mm-video/vidc/venc/src/video_encoder_device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm-video/vidc/venc/src/video_encoder_device.cpp b/mm-video/vidc/venc/src/video_encoder_device.cpp index 96facccf..d8f6f942 100644 --- a/mm-video/vidc/venc/src/video_encoder_device.cpp +++ b/mm-video/vidc/venc/src/video_encoder_device.cpp @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- -Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. +Copyright (c) 2010-2013,2015 The Linux Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -1554,7 +1554,7 @@ OMX_U32 venc_dev::pmem_free() struct venc_recon_addr recon_addr; for (cnt = 0; cnt < recon_buffers_count; cnt++) { - if(recon_buff[cnt].pmem_fd) + if(recon_buff[cnt].pmem_fd > 0) { recon_addr.pbuffer = recon_buff[cnt].virtual_address; recon_addr.offset = recon_buff[cnt].offset; |
