Mpeg2 video decoding problem: decoder hang

Hi.

Please, check this file https://drive.google.com/open?id=1Wze__SPMyzbC7toiUVCVDC3WLD1dYzZ7 with tegra_multimedia_api/samples/00_video_decode/video_decode program.

Case 1:

./video_decode MPEG2 --disable-rendering ./sample-10s.m2v

I get output:

Creating decoder in blocking mode
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 267
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 267
Setting frame input mode to 1
Starting decoder capture loop thread
Video Resolution: 1280x720
Decoder colorspace ITU-R BT.601 with standard range luma (16-235)
Query and set capture successful
Input file read complete
Exiting decoder capture loop thread
App run was successful

Case 2:

./video_decode MPEG2 --disable-rendering --blocking-mode 0  ./sample-10s.m2v

I get output:

Creating decoder in non-blocking mode
Opening in O_NONBLOCKING MODE
NvMMLiteOpen : Block : BlockType = 267
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 267
Setting frame input mode to 1
Created the PollThread and Decoder Thread
Starting Device Poll Thread
Got V4L2_EVENT_RESOLUTION_CHANGE EVENT
Video Resolution: 1280x720
Decoder colorspace ITU-R BT.601 with standard range luma (16-235)
Query and set capture successful

and program hang.

Hi,
Please share your release version($ head -1 /etc/nv_tegra_release) for reference.

head -1 /etc/nv_tegra_release
# R32 (release), REVISION: 2.1, GCID: 16294929, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug 13 04:45:36 UTC 2019

Hi,
It works fine if you render frames out:

$ ./video_decode MPEG2 --blocking-mode 0 /home/nvidia/sample-10s.m2v

and dump frames to a file:

$ ./video_decode MPEG2 --disable-rendering -o a.yuv --blocking-mode 0 /home/nvidia/sample-10s.m2v

The above commands are more like real usecase. Please give it a try.