uint32_t info;
uint32_t info=0;
void DIA_properties( void ){ char text[80]; uint16_t hh, mm, ss, ms; GtkWidget *dialog; uint8_t gmc, qpel,vop; uint32_t info;     if (playing)	return;    text[0] = 0;    if (!avifileinfo)	return;	// Fetch info	info=video_body->getSpecificMpeg4Info();	vop=info & ADM_VOP_ON;	qpel=info & ADM_QPEL_ON;	gmc=info & ADM_GMC_ON;		dialog = create_dialog();	gtk_transient(dialog);#define FILL_ENTRY(x) gtk_label_set_text((GtkLabel *) lookup_widget(dialog,#x),text);	sprintf(text, "%lu x %lu  ", avifileinfo->width,		avifileinfo->height);	FILL_ENTRY(label_size);	sprintf(text, "%2.3f fps", (float) avifileinfo->fps1000 / 1000.F);	FILL_ENTRY(label_fps);			sprintf(text, "%ld frames", avifileinfo->nb_frames);	FILL_ENTRY(label_number);		      	sprintf(text, "%s ",      fourCC::tostring(avifileinfo->fcc));	FILL_ENTRY(label_videofourcc);	if (avifileinfo->nb_frames)	  {	      	frame2time(avifileinfo->nb_frames, avifileinfo->fps1000,			 &hh, &mm, &ss, &ms);	      	sprintf(text, "%02d:%02d:%02d.%03d", hh, mm, ss, ms);	   	FILL_ENTRY(label_duration);		  }	// Fill in vop, gmc & qpel	if(vop) CHECK_SET(checkbutton_vop,1);	if(gmc) CHECK_SET(checkbutton_gmc,1);	if(qpel) CHECK_SET(checkbutton_qpel,1);	// Now audio	WAVHeader *wavinfo=NULL;	if (currentaudiostream) wavinfo=currentaudiostream->getInfo();	  if(wavinfo)	  {	      	      switch (wavinfo->channels)		{		case 1:		    sprintf(text, "MONO");		    break;		case 2:		    sprintf(text, "STEREO");		    break;		default:		    sprintf(text, "????");		    break;		}	     	FILL_ENTRY(label1_audiomode);	     	      	sprintf(text, "%lu Hz", wavinfo->frequency);	     	FILL_ENTRY(label_fq);		sprintf(text, "%lu Bps / %lu kbps", wavinfo->byterate,      wavinfo->byterate * 8 / 1000);		FILL_ENTRY(label_bitrate);		sprintf(text, "%s ", getStrFromAudioCodec(wavinfo->encoding));	     	FILL_ENTRY(label1_audiofourcc);		// Duration in seconds too		if(currentaudiostream && wavinfo->byterate>1)		{			double du;			du=currentaudiostream->getLength();			du*=1000;			du/=wavinfo->byterate;			ms2time((uint32_t)floor(du),				 &hh, &mm, &ss, &ms);	      		sprintf(text, "%02d:%02d:%02d.%03d (%lu MBytes)", hh, mm, ss, ms				,currentaudiostream->getLength()>>20);		}		FILL_ENTRY(label_audioduration);	} else	  {	      sprintf(text, "NONE");	      	FILL_ENTRY(label_fq);	     	FILL_ENTRY(label1_audiomode);	        FILL_ENTRY(label_bitrate);	  	FILL_ENTRY(label1_audiofourcc);	  }	gtk_dialog_run(GTK_DIALOG(dialog));		gtk_widget_destroy(dialog);		}  