Permalink
Browse files

ps3/vdec: Treat POC as unsigned 16bit

Fixes #1206

maybe
  • Loading branch information...
1 parent 0c321c0 commit acc917b2ba59ea4631e6a3b9c7c1a2be656c8c44 @andoma committed Oct 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/video/ps3_vdec.c
View
@@ -415,16 +415,16 @@ picture_out(vdec_decoder_t *vdd)
if(h264->idr_picture_flag)
vdd->order_base += 0x100000000LL;
- order = vdd->order_base + h264->pic_order_count[0];
+ order = vdd->order_base + (uint16_t)h264->pic_order_count[0];
if(pts == AV_NOPTS_VALUE && dts != AV_NOPTS_VALUE &&
h264->picture_type[0] == 2)
pts = dts;
#if VDEC_DETAILED_DEBUG
TRACE(TRACE_DEBUG, "VDEC DEC", "POC=%3d:%-3d IDR=%d PS=%d LD=%d %x 0x%llx %ld %d",
- h264->pic_order_count[0],
- h264->pic_order_count[1],
+ (uint16_t)h264->pic_order_count[0],
+ (uint16_t)h264->pic_order_count[1],
h264->idr_picture_flag,
h264->pic_struct,
h264->low_delay_hrd_flag,

0 comments on commit acc917b

Please sign in to comment.