frame_thread_encoder: silence integer to pointer without cast warning
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Nov 2012 17:25:24 +0000 (18:25 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Nov 2012 17:25:24 +0000 (18:25 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/frame_thread_encoder.c

index 208874c..ab095dc 100644 (file)
@@ -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;