changeset 17982:c28298d1cbf7

Fix passing qdm2 extradata to lavc decoder It was broken in rev 1.142, that code does not behave the same as the old one in some cases
author rtognimp
date Mon, 27 Mar 2006 21:37:18 +0000
parents 368ad4d775be
children f5491f58af9b
files libmpdemux/demux_mov.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Mon Mar 27 19:43:46 2006 +0000
+++ b/libmpdemux/demux_mov.c	Mon Mar 27 21:37:18 2006 +0000
@@ -745,7 +745,11 @@
 				mp_msg(MSGT_DEMUX, MSGL_V, "MOV: Found little endian PCM data, reversed fourcc:%04x\n", sh->format);
 			  }
 		          break;
-		         default: break;
+		         default:
+			  if (len > 8 && len + 44 <= trak->stdata_len) {
+				sh->codecdata_len = len-8;
+				sh->codecdata = trak->stdata+44+8;
+			  }
 		        }
 		    } else {
 		      if (len > 8 && len + 44 <= trak->stdata_len) {