[FFmpeg-cvslog] frame_thread_encoder: silence integer to pointer without cast warning
Michael Niedermayer
git at videolan.org
Thu Nov 8 20:01:16 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov 8 18:25:24 2012 +0100| [3affcc99a831b896d75c390f9546f3d54b5fa10d] | committer: Michael Niedermayer
frame_thread_encoder: silence integer to pointer without cast warning
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3affcc99a831b896d75c390f9546f3d54b5fa10d
---
libavcodec/frame_thread_encoder.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c
index 208874c..ab095dc 100644
--- a/libavcodec/frame_thread_encoder.c
+++ b/libavcodec/frame_thread_encoder.c
@@ -98,7 +98,8 @@ static void * attribute_align_arg worker(void *v){
if(got_packet) {
av_dup_packet(pkt);
} else {
- pkt->data = pkt->size = 0;
+ pkt->data = NULL;
+ pkt->size = 0;
}
pthread_mutex_lock(&c->finished_task_mutex);
c->finished_tasks[task.index].outdata = pkt; pkt = NULL;
More information about the ffmpeg-cvslog
mailing list