~ubuntu-branches/ubuntu/karmic/avidemux/karmic-proposed

« back to all changes in this revision

Viewing changes to avidemux/ADM_inputs/ADM_mpegdemuxer/dmx_io.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-02-17 23:41:46 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090217234146-eakx254awuch4wgw
Tags: 1:2.4.4-0.0ubuntu1
* Merge from debian multimedia, Ubuntu remaining changes:
  - debian/control:
    + Build-Depends on newer libx264-dev.
    + Don't Build-Depends on ccache and libamrnb-dev.
    + Build-Depends on libpulse-dev.
    + Fixed small typo in avidemux description.
  - Don't use ccache.
  - Drop patch to fix build with newer x264, it has been merged by upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <math.h>
27
27
 
28
28
#include "default.h"
29
 
#include <ADM_assert.h>
 
29
#include "ADM_assert.h"
30
30
 
31
31
#include "dmx_io.h"
32
32
 
505
505
        return r;
506
506
}
507
507
#endif
 
508
 
 
509
void fileParser::hexDump(uint8_t *buf, int size)
 
510
{
 
511
        int len, i, j, c;
 
512
 
 
513
        for(i=0;i<size;i+=16)
 
514
        {
 
515
                len = size - i;
 
516
 
 
517
                if (len > 16)
 
518
                        len = 16;
 
519
 
 
520
                printf("%08x ", i);
 
521
 
 
522
                for(j=0;j<16;j++)
 
523
                {
 
524
                        if (j < len)
 
525
                                printf(" %02x", buf[i+j]);
 
526
                        else
 
527
                                printf("   ");
 
528
                }
 
529
 
 
530
                printf(" ");
 
531
 
 
532
                for(j=0;j<len;j++)
 
533
                {
 
534
                        c = buf[i+j];
 
535
 
 
536
                        if (c < ' ' || c > '~')
 
537
                                c = '.';
 
538
 
 
539
                        printf("%c", c);
 
540
                }
 
541
 
 
542
                printf("\n");
 
543
        }
 
544
}