Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / media / libtheora / changeset_r15144.diff
blob80bf59b4dc01546bdea42002470a2b312ed0dc9d
1 Index: /trunk/theora/lib/dec/decapiwrapper.c
2 ===================================================================
3 --- /trunk/theora/lib/dec/decapiwrapper.c (revision 14385)
4 +++ /trunk/theora/lib/dec/decapiwrapper.c (revision 15144)
5 @@ -168,10 +168,13 @@
6 ogg_int64_t gp;
7 int ret;
8 +
9 + if(!_td || !_td->i || !_td->i->codec_setup)return OC_FAULT;
10 api=(th_api_wrapper *)_td->i->codec_setup;
11 + if(!api || !api->decode)return OC_FAULT;
12 ret=th_decode_packetin(api->decode,_op,&gp);
14 #ifdef _TH_DEBUG_
15 dframe++;
16 -#endif
17 +#endif
19 if(ret<0)return OC_BADPACKET;
20 @@ -185,5 +188,7 @@
21 int ret;
23 + if(!_td || !_td->i || !_td->i->codec_setup)return OC_FAULT;
24 api=(th_api_wrapper *)_td->i->codec_setup;
25 + if(!api || !api->decode)return OC_FAULT;
26 ret=th_decode_ycbcr_out(api->decode,buf);
27 if(ret>=0){