none
Memory leak on usage of Line21 decoder

    Dotaz

  • Hi,

    I am building a simple render application which reads the data from an
    asf file and render it with VMR-9.

    It is being observed that the usage of Line21 decoder causes memory
    leak of around 6MB.

    The line 21 decoder is just connected but it is not fed any cc data
    since my source has no cc samples.

    After the graph build and cleanup I observe the process private bytes
    gradually increase on each itteration.

    If I dont add the Line21 decoder I dont see the memory leak.Also have
    checked the code with bounds checker tool which does not show any
    leak.

    Here is the graph report:
    ===================
    --------------------------------------------------
      Filters
    --------------------------------------------------
      1. DT ASF Reader
      2. H264 Decoder
      3. AAC Decoder
      4. Inplace VPP
      5. Inplace APP
      6. Line-21 Decoder 2
      7. Video Renderer
      8. Audio Renderer

    --------------------------------------------------
      Connections
    --------------------------------------------------
      1. [DT ASF Reader]/(V_Out) -> [H264 Decoder]/(in0)
          Major:   MEDIATYPE_Video
          Subtype: {34363268-0000-0010-8000-00AA00389B71}
              bFixedSizeSamples:    FALSE
              bTemporalCompression: TRUE
              lSampleSize:          1
              cbFormat:             133
          Format:  FORMAT_VIDEOINFO2
          VIDEOINFOHEADER2:
              rcSource:             (0,0,640,480)
              rcTarget:             (0,0,640,480)
              dwBitRate:            150000
              dwBitErrorRate:       0
              AvgTimePerFrame:      333333
              dwInterlaceFlags:     129
              dwCopyProtectFlags:   0
              dwPictAspectRatioX:   0
              dwPictAspectRatioY:   0
              dwControlFlags:       0
          BITMAPINFOHEADER:
              biSize:               61
              biWidth:              640
              biHeight:             480
              biPlanes:             1
              biBitCount:           24
              biCompression:        0x34363268
              biSizeImage:          921600
              biXPelsPerMeter:      0
              biYPelsPerMeter:      0
              biClrUsed:            0
              biClrImportant:       0

      2. [DT ASF Reader]/(A_Out) -> [AAC Decoder]/(in0)
          Major:   MEDIATYPE_Audio
          Subtype: {000000FF-0000-0010-8000-00AA00389B71}
              bFixedSizeSamples:    TRUE
              bTemporalCompression: FALSE
              lSampleSize:          1536
              cbFormat:             28
          Format:  FORMAT_WaveFormatEx
          WAVEFORMATEX:
              wFormatTag:           0x00ff (255)
              nChannels:            2
              nSamplesPerSec:       32000
              nAvgBytesPerSec:      32000
              nBlockAlign:          1536
              wBitsPersample:       16
              cbSize:               10
          Extradata:
              00 0c 00 00 00 00 00 06  00 00

      3. [DT ASF Reader]/(CCOut0) -> [Line-21 Decoder 2]/(XForm In)
          Major:   MEDIATYPE_AUXLine21Data
          Subtype: MEDIASUBTYPE_Line21_BytePair
              bFixedSizeSamples:    TRUE
              bTemporalCompression: FALSE
              lSampleSize:          1
              cbFormat:             0
          Format:  GUID_NULL

      4. [H264 Decoder]/(out0) -> [Inplace VPP]/(Input)
          Major:   MEDIATYPE_Video
          Subtype: MEDIASUBTYPE_YV12
              bFixedSizeSamples:    TRUE
              bTemporalCompression: FALSE
              lSampleSize:          737280
              cbFormat:             1152
          Format:  FORMAT_VIDEOINFO2
          VIDEOINFOHEADER2:
              rcSource:             (0,0,640,480)
              rcTarget:             (0,0,640,480)
              dwBitRate:            0
              dwBitErrorRate:       0
              AvgTimePerFrame:      0
              dwInterlaceFlags:     0
              dwCopyProtectFlags:   0
              dwPictAspectRatioX:   4
              dwPictAspectRatioY:   3
              dwControlFlags:       0
          BITMAPINFOHEADER:
              biSize:               40
              biWidth:              1024
              biHeight:             -480
              biPlanes:             1
              biBitCount:           12
              biCompression:        0x32315659
              biSizeImage:          737280
              biXPelsPerMeter:      0
              biYPelsPerMeter:      0
              biClrUsed:            0
              biClrImportant:       0

      5. [AAC Decoder]/(out0) -> [Inplace APP]/(XForm In)
          Major:   MEDIATYPE_Audio
          Subtype: MEDIASUBTYPE_PCM
              bFixedSizeSamples:    TRUE
              bTemporalCompression: FALSE
              lSampleSize:          4096
              cbFormat:             18
          Format:  FORMAT_WaveFormatEx
          WAVEFORMATEX:
              wFormatTag:           0x0001 (1)
              nChannels:            2
              nSamplesPerSec:       32000
              nAvgBytesPerSec:      128000
              nBlockAlign:          4
              wBitsPersample:       16
              cbSize:               18
          Extradata:
              2f 00 20 00 30 00 4c 4d  45 4d 18 00 00 00 1c f9
              12 00

      6. [Inplace VPP]/(Output) -> [Video Renderer]/(VMR Input0)
          Major:   MEDIATYPE_Video
          Subtype: MEDIASUBTYPE_YV12
              bFixedSizeSamples:    TRUE
              bTemporalCompression: FALSE
              lSampleSize:          460800
              cbFormat:             112
          Format:  FORMAT_VIDEOINFO2
          VIDEOINFOHEADER2:
              rcSource:             (0,0,640,480)
              rcTarget:             (0,0,640,480)
              dwBitRate:            0
              dwBitErrorRate:       0
              AvgTimePerFrame:      0
              dwInterlaceFlags:     0
              dwCopyProtectFlags:   0
              dwPictAspectRatioX:   4
              dwPictAspectRatioY:   3
              dwControlFlags:       0
          BITMAPINFOHEADER:
              biSize:               40
              biWidth:              640
              biHeight:             480
              biPlanes:             1
              biBitCount:           12
              biCompression:        0x32315659
              biSizeImage:          460800
              biXPelsPerMeter:      0
              biYPelsPerMeter:      0
              biClrUsed:            0
              biClrImportant:       0

      7. [Inplace APP]/(XForm Out) -> [Audio Renderer]/(Audio Input pin
    (rendered))
          Major:   MEDIATYPE_Audio
          Subtype: MEDIASUBTYPE_PCM
              bFixedSizeSamples:    TRUE
              bTemporalCompression: FALSE
              lSampleSize:          4096
              cbFormat:             18
          Format:  FORMAT_WaveFormatEx
          WAVEFORMATEX:
              wFormatTag:           0x0001 (1)
              nChannels:            2
              nSamplesPerSec:       32000
              nAvgBytesPerSec:      128000
              nBlockAlign:          4
              wBitsPersample:       16
              cbSize:               18
          Extradata:
              2f 00 20 00 30 00 4c 4d  45 4d 18 00 00 00 1c f9
              12 00

      8. [Line-21 Decoder 2]/(XForm Out) -> [Video Renderer 9]/(VMR
    Input1)
          Major:   MEDIATYPE_Video
          Subtype: MEDIASUBTYPE_ARGB32_D3D_DX9_RT
              bFixedSizeSamples:    TRUE
              bTemporalCompression: FALSE
              lSampleSize:          1382400
              cbFormat:             1128
          Format:  FORMAT_VideoInfo
          VIDEOINFOHEADER:
              rcSource:             (0,0,720,480)
              rcTarget:             (0,0,720,480)
              dwBitRate:            331444224
              dwBitErrorRate:       0
              AvgTimePerFrame:      333667
          BITMAPINFOHEADER:
              biSize:               40
              biWidth:              720
              biHeight:             -480
              biPlanes:             1
              biBitCount:           32
              biCompression:        0x00000003
              biSizeImage:          1382400
              biXPelsPerMeter:      0
              biYPelsPerMeter:      0
              biClrUsed:            0
              biClrImportant:       0

    Any idea  what could be going wrong.


    Thanks,
    Madan

    21. února 2012 6:21