/[rdesktop]/sourceforge.net/rdesktop/trunk/rdpsnd.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/rdesktop/trunk/rdpsnd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 491 by stargo, Mon Oct 13 16:09:45 2003 UTC revision 492 by stargo, Tue Oct 14 07:46:49 2003 UTC
# Line 104  rdpsnd_process_negotiate(STREAM in) Line 104  rdpsnd_process_negotiate(STREAM in)
104                          in_uint16_le(in, format->wBitsPerSample);                          in_uint16_le(in, format->wBitsPerSample);
105                          in_uint16_le(in, format->cbSize);                          in_uint16_le(in, format->cbSize);
106    
107                            /* read in the buffer of unknown use */
108                            int readcnt = format->cbSize;
109                            int discardcnt = 0;
110                            if (format->cbSize > MAX_CBSIZE)
111                            {
112                                    fprintf(stderr, "cbSize too large for buffer: %d\n", format->cbSize);
113                                    readcnt = MAX_CBSIZE;
114                                    discardcnt = format->cbSize - MAX_CBSIZE;
115                            }
116                            in_uint8a(in, format->cb, readcnt);
117                            in_uint8s(in, discardcnt);
118    
119                          if (device_available && wave_out_format_supported(format))                          if (device_available && wave_out_format_supported(format))
120                          {                          {
121                                  format_count++;                                  format_count++;

Legend:
Removed from v.491  
changed lines
  Added in v.492

  ViewVC Help
Powered by ViewVC 1.1.26