# HG changeset patch # User cehoyos # Date 1270038598 0 # Node ID 5111783be6ad4795d9dd5868763bbdceb6ad9ab7 # Parent 66f3d2ff88b7b10486c5edb2a10694441ecefdbb Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY. Patch by Jean-Daniel Dupas, devlists shadowlab org diff -r 66f3d2ff88b7 -r 5111783be6ad avcodec.h --- a/avcodec.h Wed Mar 31 03:55:42 2010 +0000 +++ b/avcodec.h Wed Mar 31 12:29:58 2010 +0000 @@ -3445,7 +3445,7 @@ * @param[in] avpkt The input AVpacket containing the input buffer. * You can create such packet with av_init_packet() and by then setting * data and size, some decoders might in addition need other fields like - * flags&PKT_FLAG_KEY. All decoders are designed to use the least + * flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least * fields possible. * @param[in,out] got_picture_ptr Zero if no frame could be decompressed, otherwise, it is nonzero. * @return On error a negative value is returned, otherwise the number of bytes diff -r 66f3d2ff88b7 -r 5111783be6ad pngdec.c --- a/pngdec.c Wed Mar 31 03:55:42 2010 +0000 +++ b/pngdec.c Wed Mar 31 12:29:58 2010 +0000 @@ -599,7 +599,7 @@ exit_loop: /* handle p-frames only if a predecessor frame is available */ if(s->last_picture->data[0] != NULL) { - if(!(avpkt->flags & PKT_FLAG_KEY)) { + if(!(avpkt->flags & AV_PKT_FLAG_KEY)) { int i, j; uint8_t *pd = s->current_picture->data[0]; uint8_t *pd_last = s->last_picture->data[0];